summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-10-30 00:00:14 +0000
committerMike Frysinger <vapier@gentoo.org>2004-10-30 00:00:14 +0000
commit334c06b6443d6e6c7e67b07da3aa070eb461d7db (patch)
tree6d6bee881db71e368978b1e32936282289e8625c /eclass/flag-o-matic.eclass
parentfixed digest (repoman is happy again) (diff)
downloadhistorical-334c06b6443d6e6c7e67b07da3aa070eb461d7db.tar.gz
historical-334c06b6443d6e6c7e67b07da3aa070eb461d7db.tar.bz2
historical-334c06b6443d6e6c7e67b07da3aa070eb461d7db.zip
allow debugging flags through strip-flags
Diffstat (limited to 'eclass/flag-o-matic.eclass')
-rw-r--r--eclass/flag-o-matic.eclass8
1 files changed, 6 insertions, 2 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index 0a6b6e304741..9008b4c75726 100644
--- a/eclass/flag-o-matic.eclass
+++ b/eclass/flag-o-matic.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.75 2004/10/28 01:38:31 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.76 2004/10/30 00:00:14 vapier Exp $
#
# Author Bart Verwilst <verwilst@gentoo.org>
@@ -74,7 +74,11 @@ inherit eutils toolchain-funcs
# C[XX]FLAGS that we allow in strip-flags
setup-allowed-flags() {
if [ -z "${ALLOWED_FLAGS}" ] ; then
- export ALLOWED_FLAGS="-O -O1 -O2 -mcpu -march -mtune -fstack-protector -fno-stack-protector -fno-pie -fno-unit-at-a-time -pipe -g"
+ export ALLOWED_FLAGS="-pipe"
+ export ALLOWED_FLAGS="${ALLOWED_FLAGS} -O -O0 -O1 -O2 -mcpu -march -mtune"
+ export ALLOWED_FLAGS="${ALLOWED_FLAGS} -fstack-protector -fno-stack-protector"
+ export ALLOWED_FLAGS="${ALLOWED_FLAGS} -fno-pie -fno-unit-at-a-time"
+ export ALLOWED_FLAGS="${ALLOWED_FLAGS} -g -g0 -g1 -g2 -g3 -ggdb -ggdb0 -ggdb1 -ggdb2 -ggdb3"
case "${ARCH}" in
mips) ALLOWED_FLAGS="${ALLOWED_FLAGS} -mips1 -mips2 -mips3 -mips4 -mips32 -mips64 -mips16 -EL -EB -mabi" ;;
amd64) ALLOWED_FLAGS="${ALLOWED_FLAGS} -fPIC -m64" ;;