From: Charles Davis Subject: [PATCH] configure: Try harder to disable Fortify. Message-Id: <1442959020-40700-1-git-send-email-cdavis5x@gmail.com> Date: Tue, 22 Sep 2015 15:57:00 -0600 Signed-off-by: Charles Davis --- 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 ]], -[[#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