mirror of
https://github.com/znc/znc.git
synced 2026-05-18 07:15:54 +02:00
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:
@@ -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
@@ -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=""
|
||||
|
||||
Reference in New Issue
Block a user