add -gstabs to allowed flag list #169352
authorMike Frysinger <vapier@gentoo.org>
Sun, 4 Mar 2007 21:13:17 +0000 (21:13 +0000)
committerMike Frysinger <vapier@gentoo.org>
Sun, 4 Mar 2007 21:13:17 +0000 (21:13 +0000)
eclass/flag-o-matic.eclass

index 66fb43640a771a190b98a4ca00c1e419d945bf01..a3a1514611ce6ab7a1807c72cb84970716fca265 100644 (file)
@@ -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