From 900605912b32d08ece7a3e80e4c6b258485676b7 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Mon, 27 Sep 2010 16:04:10 +1000 Subject: Add FORTIFY_SOURCE support Adds a check for the minimum mainline GCC version for FORTIFY_SOURCE support and enables -D_FORTIFY_SOURCE=2 by default when building with --enable-debug. Signed-off-by: Allan McRae --- configure.ac | 1 + 1 file changed, 1 insertion(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index b4570f58..76e36c8b 100644 --- a/configure.ac +++ b/configure.ac @@ -316,6 +316,7 @@ if test "x$debug" = "xyes" ; then # Check for -fstack-protector availability GCC_STACK_PROTECT_LIB GCC_STACK_PROTECT_CC + GCC_FORTIFY_SOURCE_CC CFLAGS="$CFLAGS -g -Wall -Werror" else AC_MSG_RESULT(no) -- cgit v1.2.3-24-g4f1b