From 7c4fa81fb9142c2ae5d0a75cef69218a91d13e58 Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Sun, 25 Feb 2018 09:35:43 +0200 Subject: [PATCH] m4: Use -U and -D in cc_fortify Not just -D. This is to test the same thing that gets used. --- m4/cc_fortify.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m4/cc_fortify.m4 b/m4/cc_fortify.m4 index aefa9c521b..3b01ec97cd 100644 --- a/m4/cc_fortify.m4 +++ b/m4/cc_fortify.m4 @@ -7,7 +7,7 @@ AC_DEFUN([AC_CC_D_FORTIFY_SOURCE],[ if test $enable_hardening = yes; then case "$host" in *) - gl_COMPILER_OPTION_IF([-O2 -D_FORTIFY_SOURCE=2], [ + gl_COMPILER_OPTION_IF([-O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2], [ CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2" ], [], -- 2.47.3