summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Verwilst <verwilst@gentoo.org>2002-06-12 17:42:28 +0000
committerBart Verwilst <verwilst@gentoo.org>2002-06-12 17:42:28 +0000
commit4b87addc9e7ba838345f2b74eba30df60c66fecc (patch)
treec8bc295600bdc368f35586197d40ba27541b274a /eclass/flag-o-matic.eclass
parentadded latest version (diff)
downloadhistorical-4b87addc9e7ba838345f2b74eba30df60c66fecc.tar.gz
historical-4b87addc9e7ba838345f2b74eba30df60c66fecc.tar.bz2
historical-4b87addc9e7ba838345f2b74eba30df60c66fecc.zip
upd@te
Diffstat (limited to 'eclass/flag-o-matic.eclass')
-rw-r--r--eclass/flag-o-matic.eclass14
1 files changed, 14 insertions, 0 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index 9814b87d4144..cd47ec7e2b45 100644
--- a/eclass/flag-o-matic.eclass
+++ b/eclass/flag-o-matic.eclass
@@ -4,6 +4,9 @@
# /space/gentoo/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass
ECLASS=flag-o-matic
+#
+#Remove particular flags from C[XX]FLAGS
+#
filter-flags () {
for x in $1; do
@@ -13,6 +16,17 @@ filter-flags () {
}
+#
+#Add flags to the current C[XX]FLAGS
+#
+append-flags () {
+
+
+ CFLAGS="$CFLAGS $1"
+ CXXFLAGS="$CXXFLAGS $1"
+
+}
+
max-optim () {
for x in $CFLAGS; do