summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-04-08 21:53:15 +0000
committerMike Frysinger <vapier@gentoo.org>2004-04-08 21:53:15 +0000
commitc15b444ba4f0ade34c8a2a326b83a8da23b3f337 (patch)
tree426c9e4509daedb963ca0a0dec2952afb09d8b14 /eclass
parentStable on alpha and ia64 (Manifest recommit) (diff)
downloadgentoo-2-c15b444ba4f0ade34c8a2a326b83a8da23b3f337.tar.gz
gentoo-2-c15b444ba4f0ade34c8a2a326b83a8da23b3f337.tar.bz2
gentoo-2-c15b444ba4f0ade34c8a2a326b83a8da23b3f337.zip
allow $ALLOWED_FLAGS to be overridden in ebuilds #47140
Diffstat (limited to 'eclass')
-rw-r--r--eclass/flag-o-matic.eclass18
1 files changed, 10 insertions, 8 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index b28a6c001f0e..bd998343220b 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.43 2004/04/06 04:25:16 tseng Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.44 2004/04/08 21:53:15 vapier Exp $
#
# Author Bart Verwilst <verwilst@gentoo.org>
@@ -66,13 +66,15 @@ INHERITED="$INHERITED $ECLASS"
# C[XX]FLAGS that we allow in strip-flags
setup-allowed-flags() {
- export ALLOWED_FLAGS="-O -O1 -O2 -mcpu -march -mtune -fstack-protector -pipe -g"
- case "${ARCH}" in
- mips) ALLOWED_FLAGS="${ALLOWED_FLAGS} -mips1 -mips2 -mips3 -mips4 -mabi" ;;
- amd64) ALLOWED_FLAGS="${ALLOWED_FLAGS} -fPIC" ;;
- alpha) ALLOWED_FLAGS="${ALLOWED_FLAGS} -fPIC" ;;
- ia64) ALLOWED_FLAGS="${ALLOWED_FLAGS} -fPIC" ;;
- esac
+ if [ -z "${ALLOWED_FLAGS}" ] ; then
+ export ALLOWED_FLAGS="-O -O1 -O2 -mcpu -march -mtune -fstack-protector -pipe -g"
+ case "${ARCH}" in
+ mips) ALLOWED_FLAGS="${ALLOWED_FLAGS} -mips1 -mips2 -mips3 -mips4 -mabi" ;;
+ amd64) ALLOWED_FLAGS="${ALLOWED_FLAGS} -fPIC" ;;
+ alpha) ALLOWED_FLAGS="${ALLOWED_FLAGS} -fPIC" ;;
+ ia64) ALLOWED_FLAGS="${ALLOWED_FLAGS} -fPIC" ;;
+ esac
+ fi
# C[XX]FLAGS that we are think is ok, but needs testing
# NOTE: currently -Os have issues with gcc3 and K6* arch's