From: Aki Tuomi Date: Sun, 25 Feb 2018 07:35:43 +0000 (+0200) Subject: m4: Use -U and -D in cc_fortify X-Git-Tag: 2.3.1~201 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7c4fa81fb9142c2ae5d0a75cef69218a91d13e58;p=thirdparty%2Fdovecot%2Fcore.git m4: Use -U and -D in cc_fortify Not just -D. This is to test the same thing that gets used. --- 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" ], [],