summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorHanno Boeck <hanno@gentoo.org>2015-09-01 00:04:52 -0400
committerMike Frysinger <vapier@gentoo.org>2015-09-01 00:04:52 -0400
commit49ab0182a2d872bade4c4ead9ef189a80b0925df (patch)
tree7d1a7f75a4e071cb2e2ea42ead1ddee7e69c3672 /eclass
parentsys-kernel/linux-headers: delete old (diff)
downloadgentoo-49ab0182a2d872bade4c4ead9ef189a80b0925df.tar.gz
gentoo-49ab0182a2d872bade4c4ead9ef189a80b0925df.tar.bz2
gentoo-49ab0182a2d872bade4c4ead9ef189a80b0925df.zip
flag-o-matic.eclass: all-flag-vars allow all -fsanitize* flags #553716
This fixes handling of -fsanitize=foo flags, as well as supporting flags like -fsanitize-foo-bar. Since gcc seems to be using that namespace for all these settings, allow them all.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/flag-o-matic.eclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index 6a9acfb919ae..408aa47e32ee 100644
--- a/eclass/flag-o-matic.eclass
+++ b/eclass/flag-o-matic.eclass
@@ -25,7 +25,7 @@ all-flag-vars() {
setup-allowed-flags() {
ALLOWED_FLAGS="-pipe"
ALLOWED_FLAGS+=" -O -O1 -O2 -Os -Og -mcpu -march -mtune"
- ALLOWED_FLAGS+=" -fstack-protector* -fsanitize=*"
+ ALLOWED_FLAGS+=" -fstack-protector* -fsanitize*"
ALLOWED_FLAGS+=" -fbounds-check -fbounds-checking -fno-strict-overflow"
ALLOWED_FLAGS+=" -fno-PIE -fno-pie -nopie -fno-unit-at-a-time"
ALLOWED_FLAGS+=" -g -g[0-9] -ggdb -ggdb[0-9] -gdwarf-* gstabs -gstabs+"