diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2006-04-21 20:36:17 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2006-04-21 20:36:17 +0000 |
commit | 26b0dca67c80a71056086e279bc7427ba5dea176 (patch) | |
tree | 30d9f61ad81cf36e21a222959318b14d0eb267f2 /eclass/wxlib.eclass | |
parent | Stable on alpha wrt Bug #126321. (diff) | |
download | historical-26b0dca67c80a71056086e279bc7427ba5dea176.tar.gz historical-26b0dca67c80a71056086e279bc7427ba5dea176.tar.bz2 historical-26b0dca67c80a71056086e279bc7427ba5dea176.zip |
Don't filter --as-needed on newer (2.16.92) binutils as they are fixed.
Diffstat (limited to 'eclass/wxlib.eclass')
-rw-r--r-- | eclass/wxlib.eclass | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/eclass/wxlib.eclass b/eclass/wxlib.eclass index 3c8359b80d4e..d490dad0900b 100644 --- a/eclass/wxlib.eclass +++ b/eclass/wxlib.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/wxlib.eclass,v 1.13 2006/01/09 20:06:59 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/wxlib.eclass,v 1.14 2006/04/21 20:36:17 flameeyes Exp $ # Author Diego Pettenò <flameeyes@gentoo.org> # Maintained by wxwidgets herd @@ -66,10 +66,17 @@ configure_build() { # as building the unicode version required redoing it. # It takes all the params and passes them to the script subconfigure() { - filter-ldflags -Wl,--as-needed --as-needed + local ldver=$( $(tc-getLD) --version | head -n 1 | \ + sed -e 's:.*version \([0-9.]\+\) .*:\1:') + local ldmaj=$(echo $ldver | cut -f1 -d.) + local ldmin=$(echo $ldver | cut -f2 -d.) + local ldmicro=$(echo $ldver | cut -f3 -d.) + + [[ $ldmaj -lt 1 || ( $ldmaj == 2 && $ldmin < 16 && $ldmicro < 92 ) ]] && filter-ldflags -Wl,--as-needed --as-needed ECONF_SOURCE="${S}" \ econf \ + --disable-precomp-headers \ --disable-debugreport \ --with-zlib \ $(use_enable debug) $(use_enable debug debug_gdb) \ |