diff options
author | 2014-06-14 07:34:59 +0000 | |
---|---|---|
committer | 2014-06-14 07:34:59 +0000 | |
commit | afd3cb48e4926b28ac5cbb89b96cd4f81342a1a1 (patch) | |
tree | 08ca97402b2a5a4772996176728773aae5b45d82 /eclass/flag-o-matic.eclass | |
parent | bump upstream security patches (diff) | |
download | historical-afd3cb48e4926b28ac5cbb89b96cd4f81342a1a1.tar.gz historical-afd3cb48e4926b28ac5cbb89b96cd4f81342a1a1.tar.bz2 historical-afd3cb48e4926b28ac5cbb89b96cd4f81342a1a1.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 \ |