Explorar el Código

Use -fstack-protector-all in debugging mode

Samuel Thibault hace 9 años
padre
commit
be240b029a
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      configure.ac

+ 4 - 0
configure.ac

@@ -1464,6 +1464,10 @@ if test x$enable_debug = xyes; then
 	CFLAGS="$CFLAGS -O0"
 	CXXFLAGS="$CXXFLAGS -O0"
 	enable_spinlock_check=yes
+	if test x$GCC = xyes; then
+		CFLAGS="$CFLAGS -fstack-protector-all"
+		CXXFLAGS="$CXXFLAGS -fstack-protector-all"
+	fi
 else
 	CFLAGS="-O3 $CFLAGS"
 	CXXFLAGS="-O3 $CXXFLAGS"