Selaa lähdekoodia

Set _FORTIFY_SOURCE to 2 in debug mode

Samuel Thibault 9 vuotta sitten
vanhempi
commit
7a40706c2d
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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"