diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-12-31 16:51:35 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-12-31 16:51:35 +0000 |
commit | bcd23545b41c5bdca16e0cba23fc84e0c1ceacf6 (patch) | |
tree | 964c30174454b98331f3c6c83ca2551071864f65 /eclass/flag-o-matic.eclass | |
parent | Marked stable on hppa. (diff) | |
download | gentoo-2-bcd23545b41c5bdca16e0cba23fc84e0c1ceacf6.tar.gz gentoo-2-bcd23545b41c5bdca16e0cba23fc84e0c1ceacf6.tar.bz2 gentoo-2-bcd23545b41c5bdca16e0cba23fc84e0c1ceacf6.zip |
is-flag() is free
Diffstat (limited to 'eclass/flag-o-matic.eclass')
-rw-r--r-- | eclass/flag-o-matic.eclass | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass index e5d6777a932b..06357428d9a1 100644 --- a/eclass/flag-o-matic.eclass +++ b/eclass/flag-o-matic.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.32 2003/12/21 06:50:15 solar Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.33 2003/12/31 16:51:35 vapier Exp $ # # Author Bart Verwilst <verwilst@gentoo.org> @@ -113,9 +113,7 @@ filter-flags() { append-flags() { CFLAGS="${CFLAGS} $@" CXXFLAGS="${CXXFLAGS} $@" - for x in $@; do - [ "${x}" = "-fno-stack-protector" -o "${x}" = "-fno-stack-protector-all" ] && fstack-flags - done + [ "`is-flag -fno-stack-protector`" -o "`is-flag -fno-stack-protector-all`" ] && fstack-flags return 0 } |