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/wxwidgets.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/wxwidgets.eclass')
-rw-r--r-- | eclass/wxwidgets.eclass | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/eclass/wxwidgets.eclass b/eclass/wxwidgets.eclass index aa313ddb3ab6..20b138431a87 100644 --- a/eclass/wxwidgets.eclass +++ b/eclass/wxwidgets.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/wxwidgets.eclass,v 1.15 2006/03/18 16:43:20 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/wxwidgets.eclass,v 1.16 2006/04/21 20:36:17 flameeyes Exp $ # # Author Rob Cakebread <pythonhead@gentoo.org> @@ -50,8 +50,16 @@ need-wxwidgets() { esac fi - filter-ldflags -Wl,--as-needed --as-needed - filter-flags -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.) + + if [[ $ldmaj -lt 1 || ( $ldmaj == 2 && $ldmin < 16 && $ldmicro < 92 ) ]]; then + filter-ldflags -Wl,--as-needed --as-needed + filter-flags -Wl,--as-needed --as-needed + fi } |