Undefine _FORTIFY_SOURCE on MinGW - Required for current MinGW versions

This commit is contained in:
Frank Denis 2019-12-04 21:04:39 +01:00
parent 1d4017df58
commit 46afa6c3a9
2 changed files with 2 additions and 0 deletions

1
configure vendored
View File

@ -7042,6 +7042,7 @@ else
: :
fi fi
CPPFLAGS="$CPPFLAGS -U_FORTIFY_SOURCE"
;; ;;
esac esac

View File

@ -224,6 +224,7 @@ AX_CHECK_COMPILE_FLAG([-fvisibility=hidden],
AS_CASE([$host_os], [cygwin*|mingw*|msys|pw32*|cegcc*], [ ], [ AS_CASE([$host_os], [cygwin*|mingw*|msys|pw32*|cegcc*], [ ], [
AX_CHECK_COMPILE_FLAG([-fPIC], [CFLAGS="$CFLAGS -fPIC"]) AX_CHECK_COMPILE_FLAG([-fPIC], [CFLAGS="$CFLAGS -fPIC"])
CPPFLAGS="$CPPFLAGS -U_FORTIFY_SOURCE"
]) ])
AS_IF([test "$enable_pie" != "no"],[ AS_IF([test "$enable_pie" != "no"],[