[PATCH 7/7] configure: disable fortify the right way
Marcus Meissner
marcus at jet.franken.de
Sat Oct 23 03:09:18 CDT 2010
Hi,
$EXTRACFLAGS is used before $CFLAGS, so the previous try would not work.
Also just -U the define.
Ciao, Marcus
---
configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/configure.ac b/configure.ac
index 9a84cf3..e6d93dc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1690,7 +1690,7 @@ AC_CACHE_CHECK([for the need to disable Fortify], ac_cv_c_fortify_enabled,
[ac_cv_c_fortify_enabled=no],[ac_cv_c_fortify_enabled=yes]))
if test "$ac_cv_c_fortify_enabled" = yes
then
- EXTRACFLAGS="$EXTRACFLAGS -D_FORTIFY_SOURCE=0"
+ CFLAGS="$CFLAGS -U_FORTIFY_SOURCE"
fi
dnl **** Check for underscore on external symbols ****
--
1.7.1
More information about the wine-patches
mailing list