From 2bd7dabbe5e5fb060a959122e225c28f1c465e18 Mon Sep 17 00:00:00 2001 From: Bart Verwilst Date: Sat, 8 Jun 2002 15:46:55 +0000 Subject: added new flag-eclass --- eclass/flag-o-matic.eclass | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 eclass/flag-o-matic.eclass (limited to 'eclass') 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 +# /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 + +} -- cgit v1.2.3-65-gdbad