diff options
author | Ryan Hill <rhill@gentoo.org> | 2014-06-14 07:34:59 +0000 |
---|---|---|
committer | Ryan Hill <rhill@gentoo.org> | 2014-06-14 07:34:59 +0000 |
commit | 4d526ff2d0e70e37b335dadb9a5fc9bf90ab79f4 (patch) | |
tree | 962ce09917ffdbe02c8cd0a962fc4dda14d31f5a /eclass/flag-o-matic.eclass | |
parent | bump upstream security patches (diff) | |
download | gentoo-2-4d526ff2d0e70e37b335dadb9a5fc9bf90ab79f4.tar.gz gentoo-2-4d526ff2d0e70e37b335dadb9a5fc9bf90ab79f4.tar.bz2 gentoo-2-4d526ff2d0e70e37b335dadb9a5fc9bf90ab79f4.zip |
Add -Og, -gdwarf-*, and -fabi=* to allowed flags (bug #512534, #512754).
Use a glob for -fstack-protector and friends.
Diffstat (limited to 'eclass/flag-o-matic.eclass')
-rw-r--r-- | eclass/flag-o-matic.eclass | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass index 6687789c4a13..c8663bd2158b 100644 --- a/eclass/flag-o-matic.eclass +++ b/eclass/flag-o-matic.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2014 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.198 2014/06/14 05:14:55 robbat2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.199 2014/06/14 07:34:59 rhill Exp $ # @ECLASS: flag-o-matic.eclass # @MAINTAINER: @@ -24,17 +24,17 @@ all-flag-vars() { # Note: shell globs and character lists are allowed setup-allowed-flags() { ALLOWED_FLAGS="-pipe" - ALLOWED_FLAGS+=" -O -O1 -O2 -Os -mcpu -march -mtune" - ALLOWED_FLAGS+=" -fstack-protector -fstack-protector-all" + ALLOWED_FLAGS+=" -O -O1 -O2 -Os -Og -mcpu -march -mtune" + ALLOWED_FLAGS+=" -fstack-protector*" ALLOWED_FLAGS+=" -fbounds-checking -fno-strict-overflow" ALLOWED_FLAGS+=" -fno-PIE -fno-pie -fno-unit-at-a-time" - ALLOWED_FLAGS+=" -g -g[0-9] -ggdb -ggdb[0-9] -gstabs -gstabs+" + ALLOWED_FLAGS+=" -g -g[0-9] -ggdb -ggdb[0-9] -gdwarf-* gstabs -gstabs+" ALLOWED_FLAGS+=" -fno-ident -fpermissive -frecord-gcc-switches" ALLOWED_FLAGS+=" -fdiagnostics*" ALLOWED_FLAGS+=" -W* -w" # allow a bunch of flags that negate features / control ABI - ALLOWED_FLAGS+=" -fno-stack-protector -fno-stack-protector-all \ + ALLOWED_FLAGS+=" -fno-stack-protector* -fabi-version=* \ -fno-strict-aliasing -fno-bounds-checking -fstrict-overflow \ -fno-omit-frame-pointer -fno-builtin*" ALLOWED_FLAGS+=" -mregparm -mno-app-regs -mapp-regs -mno-mmx -mno-sse \ |