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
commit263ef6dab9f515fd4b6b483c22abf11e4681337b (patch)
tree95439fb6bef473509ef6c7828e9050118bc008cd /eclass
parentstardock-images license added ; needed by vdr-weatherng-0.0.8* (diff)
downloadhistorical-263ef6dab9f515fd4b6b483c22abf11e4681337b.tar.gz
historical-263ef6dab9f515fd4b6b483c22abf11e4681337b.tar.bz2
historical-263ef6dab9f515fd4b6b483c22abf11e4681337b.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
}