Browse Source

Set _FORTIFY_SOURCE to 2 in debug mode

Samuel Thibault 9 years ago
parent
commit
7a40706c2d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      configure.ac

+ 1 - 0
configure.ac

@@ -1467,6 +1467,7 @@ if test x$enable_debug = xyes; then
 	if test x$GCC = xyes; then
 		CFLAGS="$CFLAGS -fstack-protector-all"
 		CXXFLAGS="$CXXFLAGS -fstack-protector-all"
+		CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
 	fi
 else
 	CFLAGS="-O3 $CFLAGS"