From: Mike Frysinger Date: Sun, 4 Mar 2007 21:13:17 +0000 (+0000) Subject: add -gstabs to allowed flag list #169352 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=644add8c8f77485dc423f0592d957c038623c108;p=gentoo.git add -gstabs to allowed flag list #169352 --- diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass index 66fb43640a77..a3a1514611ce 100644 --- a/eclass/flag-o-matic.eclass +++ b/eclass/flag-o-matic.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2007 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.116 2007/03/04 21:03:59 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.117 2007/03/04 21:13:17 vapier Exp $ # # Maintainer: toolchain@gentoo.org @@ -92,6 +92,7 @@ inherit eutils toolchain-funcs multilib # # C[XX]FLAGS that we allow in strip-flags +# Note: shell globs and character lists are allowed setup-allowed-flags() { if [[ -z ${ALLOWED_FLAGS} ]] ; then export ALLOWED_FLAGS="-pipe" @@ -99,7 +100,7 @@ setup-allowed-flags() { export ALLOWED_FLAGS="${ALLOWED_FLAGS} -fstack-protector -fstack-protector-all" export ALLOWED_FLAGS="${ALLOWED_FLAGS} -fbounds-checking -fno-bounds-checking" export ALLOWED_FLAGS="${ALLOWED_FLAGS} -fno-PIE -fno-pie -fno-unit-at-a-time" - export ALLOWED_FLAGS="${ALLOWED_FLAGS} -g -g0 -g1 -g2 -g3 -ggdb -ggdb0 -ggdb1 -ggdb2 -ggdb3" + export ALLOWED_FLAGS="${ALLOWED_FLAGS} -g -g[0-9] -ggdb -ggdb[0-9] -gstabs -gstabs+" export ALLOWED_FLAGS="${ALLOWED_FLAGS} -fno-ident" fi # allow a bunch of flags that negate features / control ABI