From: Diego Elio Pettenò Date: Sun, 9 Oct 2005 22:28:35 +0000 (+0000) Subject: Added bindnow-flags function to find out the right flags to enable now binding on... X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=078f1e510dd4a4b29bfdccc1ca4a5cc28450661b;p=gentoo.git Added bindnow-flags function to find out the right flags to enable now binding on GNU and non-GNU linkers. --- diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass index cdabdd4a3a5b..2807a90fff7f 100644 --- a/eclass/flag-o-matic.eclass +++ b/eclass/flag-o-matic.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.93 2005/09/27 01:06:47 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.94 2005/10/09 22:28:35 flameeyes Exp $ # need access to emktemp() @@ -59,6 +59,8 @@ inherit eutils toolchain-funcs multilib # notice: modern automatic specs files will also suppress -fstack-protector-all # when only -fno-stack-protector is given # +#### bindnow-flags #### +# Returns the flags to enable "now" binding in the current selected linker. # ################ DEPRECATED functions ################ # The following are still present to avoid breaking existing @@ -498,3 +500,20 @@ gcc2-flags() { export CFLAGS CXXFLAGS } + +# Gets the flags needed for "NOW" binding +bindnow-flags() { + case $($(tc-getLD) -v 2>&1 &1