flag-o-matic.eclass: all-flag-vars allow all -fsanitize* flags #553716
authorHanno Boeck <hanno@gentoo.org>
Tue, 1 Sep 2015 04:04:52 +0000 (00:04 -0400)
committerMike Frysinger <vapier@gentoo.org>
Tue, 1 Sep 2015 04:04:52 +0000 (00:04 -0400)
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

index 6a9acfb919aef5be300fd79e00b1f1a89a313caf..408aa47e32ee45cfa4ba90c3c5af1ed28f9e1178 100644 (file)
@@ -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+"