From 46afa6c3a9a0382120cab12fca026ac55a8e187d Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Wed, 4 Dec 2019 21:04:39 +0100 Subject: [PATCH] Undefine _FORTIFY_SOURCE on MinGW - Required for current MinGW versions --- configure | 1 + configure.ac | 1 + 2 files changed, 2 insertions(+) diff --git a/configure b/configure index 02086206..42d665e0 100755 --- a/configure +++ b/configure @@ -7042,6 +7042,7 @@ else : fi + CPPFLAGS="$CPPFLAGS -U_FORTIFY_SOURCE" ;; esac diff --git a/configure.ac b/configure.ac index d9c2b321..daf7aac5 100644 --- a/configure.ac +++ b/configure.ac @@ -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"],[