From eb8c283dd8586311bbd3760f3a37782ecc67e222 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Fri, 15 Sep 2017 14:57:24 +0200 Subject: [PATCH] Add -fno-asynchronous-unwind-tables to optimized builds No need to check if the linker supports this. --- configure.ac | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 0965727e..d2ca162c 100644 --- a/configure.ac +++ b/configure.ac @@ -167,6 +167,9 @@ AC_ARG_ENABLE(opt, AS_IF([test "x$enableval" = "xyes"], [ AX_CHECK_COMPILE_FLAG([-Ofast], [CFLAGS="$CFLAGS -Ofast"]) AX_CHECK_COMPILE_FLAG([-march=native], [CFLAGS="$CFLAGS -march=native"]) + AX_CHECK_COMPILE_FLAG([-fno-asynchronous-unwind-tables], [ + [CFLAGS="$CFLAGS -fno-asynchronous-unwind-tables"] + ]) ]) ]) @@ -245,9 +248,7 @@ AS_CASE([$host_os], 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"] - ) + [CFLAGS="$CFLAGS -fno-asynchronous-unwind-tables"] ]) ])