diff options
author | 2002-06-08 15:46:55 +0000 | |
---|---|---|
committer | 2002-06-08 15:46:55 +0000 | |
commit | d1b109d5bea1b5a71183f6bf508810794d6a5537 (patch) | |
tree | abf43295b18f3c9b0ac40dd76de6fc7cc4a23524 /eclass/flag-o-matic.eclass | |
parent | depend changes (diff) | |
download | gentoo-2-d1b109d5bea1b5a71183f6bf508810794d6a5537.tar.gz gentoo-2-d1b109d5bea1b5a71183f6bf508810794d6a5537.tar.bz2 gentoo-2-d1b109d5bea1b5a71183f6bf508810794d6a5537.zip |
added new flag-eclass
Diffstat (limited to 'eclass/flag-o-matic.eclass')
-rw-r--r-- | eclass/flag-o-matic.eclass | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass new file mode 100644 index 000000000000..9814b87d4144 --- /dev/null +++ b/eclass/flag-o-matic.eclass @@ -0,0 +1,22 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# Author Bart Verwilst <verwilst@gentoo.org> +# /space/gentoo/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass +ECLASS=flag-o-matic + +filter-flags () { + + for x in $1; do + CFLAGS="${CFLAGS/$x}" + CXXFLAGS="${CXXFLAGS/$x}" + done + +} + +max-optim () { + + for x in $CFLAGS; do + echo $x + done + +} |