mirror of
https://github.com/reactos/wine.git
synced 2024-11-30 15:10:27 +00:00
configure: Try harder to disable Fortify.
Signed-off-by: Charles Davis <cdavis5x@gmail.com>
This commit is contained in:
parent
3eb8e325b8
commit
5252d19fba
2
configure
vendored
2
configure
vendored
@ -14550,7 +14550,7 @@ else
|
||||
int
|
||||
main ()
|
||||
{
|
||||
#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
|
||||
;
|
||||
|
@ -1898,7 +1898,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]))
|
||||
|
Loading…
Reference in New Issue
Block a user