[Lunar-commits] <moonbase-core> gcc: -D_FORTIFY_SOURCE=2 is a preprocessor flag and does not belong in CFLAGS/CXXFLAGS

Stefan Wold ratler at lunar-linux.org
Tue Jul 16 19:27:42 CEST 2013


commit 9a0c717a3ed027d60e3f76e5ac0719cd5c09efb0
Author: Stefan Wold <ratler at lunar-linux.org>
Date: Sun, 07 Jul 2013 03:02:04 -0700
URL: https://github.com/lunar-linux/moonbase-core/commit/9a0c717a3ed027d60e3f76e5ac0719cd5c09efb0

gcc: -D_FORTIFY_SOURCE=2 is a preprocessor flag and does not belong in CFLAGS/CXXFLAGS
---
  compilers/gcc/plugin.d/optimize-gcc_4_8.plugin | +1/-1     
  1 file changed, 1 insertion(+), 1 deletion(-)

--- a/compilers/gcc/plugin.d/optimize-gcc_4_8.plugin
+++ b/compilers/gcc/plugin.d/optimize-gcc_4_8.plugin
@@ -129,7 +129,7 @@ plugin_compiler_gcc_4_8_optimize()
         c_cxx_flags_add "-pipe"
         ;;
       Fortify)
-        c_cxx_flags_add "-D_FORTIFY_SOURCE=2"
+        cppflags_add "-D_FORTIFY_SOURCE=2"
         ;;
       StackProt)
         c_cxx_flags_add "-fstack-protector"




More information about the Lunar-commits mailing list