Skip to content

Commit

Permalink
m4: Use -U and -D in cc_fortify
Browse files Browse the repository at this point in the history
Not just -D. This is to test the same thing
that gets used.
  • Loading branch information
cmouse authored and villesavolainen committed Mar 6, 2018
1 parent 37b3c51 commit 7c4fa81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion m4/cc_fortify.m4
Expand Up @@ -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"
],
[],
Expand Down

0 comments on commit 7c4fa81

Please sign in to comment.