configure: Split adding of CFLAGS and CPPFLAGS for hardened toolchain
authorDiego Biurrun <diego@biurrun.de>
Wed, 30 Jul 2014 12:09:47 +0000 (05:09 -0700)
committerDiego Biurrun <diego@biurrun.de>
Tue, 16 Sep 2014 07:18:53 +0000 (00:18 -0700)
configure

index 81e1d3f..6e210bb 100755 (executable)
--- a/configure
+++ b/configure
@@ -2553,8 +2553,9 @@ case "$toolchain" in
         add_ldflags -fprofile-arcs -ftest-coverage
     ;;
     hardened)
-        add_cflags  -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all
-        add_ldflags -Wl,-z,relro -Wl,-z,now
+        add_cppflags -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
+        add_cflags   -fno-strict-overflow -fstack-protector-all
+        add_ldflags  -Wl,-z,relro -Wl,-z,now
     ;;
     ?*)
         die "Unknown toolchain $toolchain"