1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-20 02:25:14 -07:00

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
CPPFLAGS="$CPPFLAGS -U_FORTIFY_SOURCE"
;;
esac

View File

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