summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt2
-rw-r--r--configure.ac2
2 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 07520043..18bab88a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -341,7 +341,7 @@ if (${GNUC})
-Wstack-protector
"--param ssp-buffer-size=1")
- add_definitions(-D_FORTIFY_SOURCE=2)
+ add_definitions(-D_FORTIFY_SOURCE=3)
endif()
if (EVENT__ENABLE_GCC_FUNCTION_SECTIONS)
diff --git a/configure.ac b/configure.ac
index be538d9e..b5d4fb75 100644
--- a/configure.ac
+++ b/configure.ac
@@ -42,7 +42,7 @@ AC_ARG_ENABLE([gcc-warnings],
AC_ARG_ENABLE([gcc-hardening],
AS_HELP_STRING([--enable-gcc-hardening, enable compiler security checks]),
[if test "$enableval" = "yes"; then
- CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2 -fstack-protector-all"
+ CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=3 -fstack-protector-all"
CFLAGS="$CFLAGS -fwrapv -fPIE -Wstack-protector"
CFLAGS="$CFLAGS --param ssp-buffer-size=1"
fi])