Add -D_FORTIFY_SOURCE=2 to our CXXFLAGS by default

This can be called 'inspired by Marcus Rueckert <darix@opensu.se>'


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@898 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2007-12-04 20:03:27 +00:00
parent 0e65f92d09
commit 425fd72c41
2 changed files with 3 additions and 5 deletions
Vendored
+2 -4
View File
@@ -2408,7 +2408,7 @@ case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
CXXFLAGS="$SAVED_CXXFLAGS -D_GNU_SOURCE"
CXXFLAGS="$SAVED_CXXFLAGS -D_GNU_SOURCE -D_FORTIFY_SOURCE=2"
INCLUDES=""
LIBS=""
DEPEND=""
@@ -2510,8 +2510,6 @@ if test "${enable_sasl+set}" = set; then
fi
appendCXX -Wall -W -Wno-unused
if test "$DEBUG" != "no"; then
appendCXX -ggdb -D_DEBUG
else
@@ -2523,7 +2521,7 @@ if test "$IPV6" != "no"; then
fi
if test "x$GXX" = "xyes"; then
appendCXX -Woverloaded-virtual
appendCXX -Wall -W -Wno-unused -Woverloaded-virtual
# enable g++ dependency tracking
DEPEND=".depend"
fi
+1 -1
View File
@@ -4,7 +4,7 @@ SAVED_CXXFLAGS=$CXXFLAGS
AC_PROG_CXX
AC_CANONICAL_HOST
CXXFLAGS="$SAVED_CXXFLAGS -D_GNU_SOURCE"
CXXFLAGS="$SAVED_CXXFLAGS -D_GNU_SOURCE -D_FORTIFY_SOURCE=2"
INCLUDES=""
LIBS=""
DEPEND=""