[PATCH] configure: Try harder to disable Fortify.
Charles Davis
cdavis5x at gmail.com
Tue Sep 22 16:57:00 CDT 2015
Signed-off-by: Charles Davis <cdavis5x at gmail.com>
---
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 69e2540..4e795e4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1927,7 +1927,7 @@ dnl **** Disable Fortify, it has too many false positives
AC_CACHE_CHECK([for the need to disable Fortify], ac_cv_c_fortify_enabled,
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <string.h>]],
-[[#if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
+[[#if (defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0) || (defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0)
#error Fortify enabled
#endif]])],
[ac_cv_c_fortify_enabled=no],[ac_cv_c_fortify_enabled=yes]))
--
2.5.3
More information about the wine-patches
mailing list