1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-24 04:25:10 -07:00

Add -fno-asynchronous-unwind-tables to optimized builds

No need to check if the linker supports this.
This commit is contained in:
Frank Denis 2017-09-15 14:57:24 +02:00
parent 186b398a21
commit eb8c283dd8

View File

@ -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"]
)
])
])