commit: 49ab0182a2d872bade4c4ead9ef189a80b0925df
Author: Hanno Boeck <hanno <AT> gentoo <DOT> org>
AuthorDate: Tue Sep 1 04:04:52 2015 +0000
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Tue Sep 1 04:04:52 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49ab0182
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.
eclass/flag-o-matic.eclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index 6a9acfb..408aa47 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+"