summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorGabor X Toth <*@tg-x.net>2014-05-27 21:31:46 +0000
committerGabor X Toth <*@tg-x.net>2014-05-27 21:31:46 +0000
commit5510b78f8b00c0826dfd692cb548b3142000c76f (patch)
tree9226200e316df729714b284ff2c7a92608e98e09 /configure.ac
parent90f9ff7537023931181685139246de88cfedd454 (diff)
undef _FORTIFY_SOURCE before defining it, in case it's already set
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 5a0f19d2b..7a488dd6e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -251,7 +251,7 @@ AC_DEFINE_UNQUOTED([NEED_LIBGCRYPT_VERSION], "$NEED_LIBGCRYPT_VERSION", [require
AC_ARG_ENABLE(gcc-hardening,
AS_HELP_STRING(--enable-gcc-hardening, enable compiler security checks),
[if test x$enableval = xyes; then
- CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2 -fstack-protector-all"
+ CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-all"
CFLAGS="$CFLAGS -fwrapv -fPIE -Wstack-protector"
CFLAGS="$CFLAGS --param ssp-buffer-size=1"
LDFLAGS="$LDFLAGS -pie"