Explorar o código

Set _FORTIFY_SOURCE to 2 in debug mode

Samuel Thibault %!s(int64=9) %!d(string=hai) anos
pai
achega
7a40706c2d
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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"