summaryrefslogtreecommitdiff
path: root/eclass
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
commit56a4b4e99d5fa9d0bf9de8820dac654b08e72b31 (patch)
treeda933ce17363fa3591a4ca3154703cedfe9d21bc /eclass
parentNew Ebuild, thanks to tuXXer and StefanBriesenick. Closes bug #23049. Added a... (diff)
downloadgentoo-2-56a4b4e99d5fa9d0bf9de8820dac654b08e72b31.tar.gz
gentoo-2-56a4b4e99d5fa9d0bf9de8820dac654b08e72b31.tar.bz2
gentoo-2-56a4b4e99d5fa9d0bf9de8820dac654b08e72b31.zip
allow debugging flags through strip-flags
Diffstat (limited to '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" ;;