summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-01-13 22:40:29 +0000
committerMike Frysinger <vapier@gentoo.org>2012-01-13 22:40:29 +0000
commit417172660a457d1c50dbe96d711b19b453dde06e (patch)
tree65a824b7d7aa9ce483488fb48d327df7220e83d4
parentDon't set PROPERTIES=interactive, bug 398809. (diff)
downloadhistorical-417172660a457d1c50dbe96d711b19b453dde06e.tar.gz
historical-417172660a457d1c50dbe96d711b19b453dde06e.tar.bz2
historical-417172660a457d1c50dbe96d711b19b453dde06e.zip
have filter-flags filter out LDFLAGS too #395619
-rw-r--r--eclass/flag-o-matic.eclass13
1 files changed, 6 insertions, 7 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index 0328b63c16d8..f53c5765e780 100644
--- a/eclass/flag-o-matic.eclass
+++ b/eclass/flag-o-matic.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.163 2011/12/28 06:28:55 dirtyepic Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.164 2012/01/13 22:40:29 vapier Exp $
# @ECLASS: flag-o-matic.eclass
# @MAINTAINER:
@@ -113,14 +113,13 @@ _filter-var() {
# @FUNCTION: filter-flags
# @USAGE: <flags>
# @DESCRIPTION:
-# Remove particular <flags> from {C,CPP,CXX,F,FC}FLAGS. Accepts shell globs.
+# Remove particular <flags> from {C,CPP,CXX,F,FC,LD}FLAGS. Accepts shell globs.
filter-flags() {
_filter-hardened "$@"
- _filter-var CFLAGS "$@"
- _filter-var CPPFLAGS "$@"
- _filter-var CXXFLAGS "$@"
- _filter-var FFLAGS "$@"
- _filter-var FCFLAGS "$@"
+ local v
+ for v in C CPP CXX F FC LD ; do
+ _filter-var ${v}FLAGS "$@"
+ done
return 0
}