From 186b398a213e93ab1592ef29d45cbf0a08c3a083 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Fri, 15 Sep 2017 14:39:09 +0200 Subject: [PATCH] -fno-asynchronous-unwind-tables is now required on MingW --- configure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/configure.ac b/configure.ac index 4b8c57aa..0965727e 100644 --- a/configure.ac +++ b/configure.ac @@ -242,6 +242,15 @@ AS_CASE([$host_os], AX_CHECK_LINK_FLAG([-Wl,--nxcompat], [LDFLAGS="$LDFLAGS -Wl,--nxcompat"]) ]) +AS_CASE([$host_os], + [cygwin*|mingw*|msys|pw32*|cegcc*], [ + AX_CHECK_COMPILE_FLAG([-fno-asynchronous-unwind-tables], [ + AX_CHECK_LINK_FLAG([-fno-asynchronous-unwind-tables], + [CFLAGS="$CFLAGS -fno-asynchronous-unwind-tables"] + ) + ]) +]) + AS_IF([test "x$enable_ssp" != "xno"],[ AS_CASE([$host_os],