[Lunar-commits] <moonbase-core> gcc: Make Fortify a safe option.

Peter de Ridder peter at lunar-linux.org
Wed Aug 21 13:43:50 CEST 2013


commit 14ad124eab18bab0167daf611f19523d7140baa7
Author: Peter de Ridder <peter at lunar-linux.org>
Date: Wed, 21 Aug 2013 02:29:09 -0700
URL: https://github.com/lunar-linux/moonbase-core/commit/14ad124eab18bab0167daf611f19523d7140baa7

gcc: Make Fortify a safe option.
---
  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
@@ -649,10 +649,10 @@ EOF
             "Deprecated" "-Wno-deprecated for C++" $( echo ${CC_OPTS[@]} | grep -qw "Deprecated" && echo "on" || echo "off" ) "Disable warnings of deprecated symbols in C++"
             "Debug" "-g" $( echo ${CC_OPTS[@]} | grep -qw "Debug" && echo "on" || echo "off" ) "Add debug symbols"
             "Pipe" "-pipe (RECOMMENDED)" $( echo ${CC_OPTS[@]} | grep -qw "Pipe" && echo "on" || echo "off" ) "Enable cc to use named pipes."
+            "Fortify" "-D_FORTIFY_SOURCE=2" $( echo ${CC_OPTS[@]} | grep -qw "Fortify" && echo "on" || echo "off" ) "Gcc Stack protector checking"
             )
           if [ "$SAFE_OPTIMIZATIONS" == "off" ]; then
           OPTIONS+=(
-            "Fortify" "-D_FORTIFY_SOURCE=2" $( echo ${CC_OPTS[@]} | grep -qw "Fortify" && echo "on" || echo "off" ) "Gcc Stack protector checking"
             "StackProt" "-fstack-protector" $( echo ${CC_OPTS[@]} | grep -qw "StackProt" && echo "on" || echo "off" ) "Gcc Stack protector checking (UNSAFE)"
             )
           fi




More information about the Lunar-commits mailing list