summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2006-03-18 16:43:20 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2006-03-18 16:43:20 +0000
commitdd30f7ee24acebe36c6e9c24e1ab4828a1e45dbe (patch)
tree4c562e0efca17179935407f1a2f3b6c01814201b /eclass
parentstardock-images license added ; needed by vdr-weatherng-0.0.8* (diff)
downloadgentoo-2-dd30f7ee24acebe36c6e9c24e1ab4828a1e45dbe.tar.gz
gentoo-2-dd30f7ee24acebe36c6e9c24e1ab4828a1e45dbe.tar.bz2
gentoo-2-dd30f7ee24acebe36c6e9c24e1ab4828a1e45dbe.zip
Centralize --as-needed filtering in wxwidgets eclass, safer and simpler.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/wxwidgets.eclass7
1 files changed, 5 insertions, 2 deletions
diff --git a/eclass/wxwidgets.eclass b/eclass/wxwidgets.eclass
index 91f756cef09b..aa313ddb3ab6 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.14 2005/11/26 20:42:54 sekretarz Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/wxwidgets.eclass,v 1.15 2006/03/18 16:43:20 flameeyes Exp $
#
# Author Rob Cakebread <pythonhead@gentoo.org>
@@ -19,7 +19,7 @@
# Arguments: (wxGTK 2.6) gtk-ansi gtk2-ansi unicode base-ansi base-unicode mac-ansi mac-unicode
# Note: Don't call this function directly from ebuilds
-inherit multilib
+inherit multilib flag-o-matic
need-wxwidgets() {
debug-print-function $FUNCNAME $*
@@ -49,6 +49,9 @@ need-wxwidgets() {
exit 1;;
esac
fi
+
+ filter-ldflags -Wl,--as-needed --as-needed
+ filter-flags -Wl,--as-needed --as-needed
}