diff options
author | Martin Schlemmer <azarah@gentoo.org> | 2003-11-07 18:42:45 +0000 |
---|---|---|
committer | Martin Schlemmer <azarah@gentoo.org> | 2003-11-07 18:42:45 +0000 |
commit | ca74164e62e864b7417783e3b9a3c73f625cdde7 (patch) | |
tree | 4514fa337f72828dcac493efe10e05d80631a76e /eclass/flag-o-matic.eclass | |
parent | Small cleanup (diff) | |
download | gentoo-2-ca74164e62e864b7417783e3b9a3c73f625cdde7.tar.gz gentoo-2-ca74164e62e864b7417783e3b9a3c73f625cdde7.tar.bz2 gentoo-2-ca74164e62e864b7417783e3b9a3c73f625cdde7.zip |
Close bug #32882
Diffstat (limited to 'eclass/flag-o-matic.eclass')
-rw-r--r-- | eclass/flag-o-matic.eclass | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass index 7bd80f3a4833..0face1ffc19d 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.29 2003/10/31 23:03:40 puggy Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.30 2003/11/07 18:42:45 azarah Exp $ # # Author Bart Verwilst <verwilst@gentoo.org> @@ -172,6 +172,14 @@ strip-flags() { done done + # In case we filtered out all optimization flags fallback to -O2 + if [ "${CFLAGS/-O}" != "${CFLAGS}" -a "${NEW_CFLAGS/-O}" = "${NEW_CFLAGS}" ]; then + NEW_CFLAGS="${NEW_CFLAGS} -O2" + fi + if [ "${CXXFLAGS/-O}" != "${CXXFLAGS}" -a "${NEW_CXXFLAGS/-O}" = "${NEW_CXXFLAGS}" ]; then + NEW_CXXFLAGS="${NEW_CXXFLAGS} -O2" + fi + set +f [ `use debug` ] \ |