diff options
Diffstat (limited to '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 + +} |