Browse Source

Use -fstack-protector-all in debugging mode

Samuel Thibault 9 years ago
parent
commit
be240b029a
1 changed files with 4 additions and 0 deletions
  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"