From 26b0dca67c80a71056086e279bc7427ba5dea176 Mon Sep 17 00:00:00 2001 From: Diego Elio Pettenò Date: Fri, 21 Apr 2006 20:36:17 +0000 Subject: Don't filter --as-needed on newer (2.16.92) binutils as they are fixed. --- eclass/wxwidgets.eclass | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'eclass/wxwidgets.eclass') 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 @@ -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 } -- cgit v1.2.3-65-gdbad