1 |
commit: 49ab0182a2d872bade4c4ead9ef189a80b0925df |
2 |
Author: Hanno Boeck <hanno <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 1 04:04:52 2015 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 1 04:04:52 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49ab0182 |
7 |
|
8 |
flag-o-matic.eclass: all-flag-vars allow all -fsanitize* flags #553716 |
9 |
|
10 |
This fixes handling of -fsanitize=foo flags, as well as supporting flags |
11 |
like -fsanitize-foo-bar. Since gcc seems to be using that namespace for |
12 |
all these settings, allow them all. |
13 |
|
14 |
eclass/flag-o-matic.eclass | 2 +- |
15 |
1 file changed, 1 insertion(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass |
18 |
index 6a9acfb..408aa47 100644 |
19 |
--- a/eclass/flag-o-matic.eclass |
20 |
+++ b/eclass/flag-o-matic.eclass |
21 |
@@ -25,7 +25,7 @@ all-flag-vars() { |
22 |
setup-allowed-flags() { |
23 |
ALLOWED_FLAGS="-pipe" |
24 |
ALLOWED_FLAGS+=" -O -O1 -O2 -Os -Og -mcpu -march -mtune" |
25 |
- ALLOWED_FLAGS+=" -fstack-protector* -fsanitize=*" |
26 |
+ ALLOWED_FLAGS+=" -fstack-protector* -fsanitize*" |
27 |
ALLOWED_FLAGS+=" -fbounds-check -fbounds-checking -fno-strict-overflow" |
28 |
ALLOWED_FLAGS+=" -fno-PIE -fno-pie -nopie -fno-unit-at-a-time" |
29 |
ALLOWED_FLAGS+=" -g -g[0-9] -ggdb -ggdb[0-9] -gdwarf-* gstabs -gstabs+" |