From babade159482170bbcb710970277a90e994695fe Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Thu, 3 Apr 2008 09:59:46 +0300 Subject: [PATCH] Enable stack protector by default if gcc supports it --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index bcd8f80..46ac4ad 100644 --- a/configure.ac +++ b/configure.ac @@ -29,7 +29,7 @@ if test "$GCC" = yes; then CFLAGS="$CFLAGS -fPIC -DPIC -D_REENTRANT -Wall -Wpointer-arith -Wmissing-prototypes -Wno-char-subscripts" # XXX disabled for now due to noise from NSPR headers # CFLAGS="$CFLAGS -Wstrict-prototypes" - cflags_to_try="-fno-strict-aliasing" + cflags_to_try="-fno-strict-aliasing -fstack-protector" AC_MSG_CHECKING([supported compiler flags]) old_cflags=$CFLAGS echo -- 2.7.4