mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-19 18:15:18 -07:00
Disable PIE/PIC/SP/async-unwind on eabi
This commit is contained in:
parent
d8f512bfaa
commit
e04088d0b2
@ -91,7 +91,7 @@ AC_ARG_ENABLE(pie,
|
||||
[AS_HELP_STRING(--disable-pie,Do not produce position independent executables)],
|
||||
enable_pie=$enableval, enable_pie="maybe")
|
||||
|
||||
AS_CASE([$host_os], [mingw*|cygwin*|msys], [enable_pie="no"])
|
||||
AS_CASE([$host_os], [mingw*|cygwin*|msys|eabi], [enable_pie="no"])
|
||||
|
||||
AC_ARG_ENABLE(blocking-random,
|
||||
[AS_HELP_STRING(--enable-blocking-random,Enable this switch only if /dev/urandom is totally broken on the target platform)],
|
||||
@ -223,7 +223,7 @@ AS_CASE([$host_os], [linux-gnu], [AX_ADD_FORTIFY_SOURCE], [ ])
|
||||
AX_CHECK_COMPILE_FLAG([-fvisibility=hidden],
|
||||
[CFLAGS="$CFLAGS -fvisibility=hidden"])
|
||||
|
||||
AS_CASE([$host_os], [cygwin*|mingw*|msys|pw32*|cegcc*], [ ], [
|
||||
AS_CASE([$host_os], [cygwin*|mingw*|msys|pw32*|cegcc*|eabi], [ ], [
|
||||
AX_CHECK_COMPILE_FLAG([-fPIC], [CFLAGS="$CFLAGS -fPIC"])
|
||||
])
|
||||
|
||||
@ -276,7 +276,7 @@ AS_CASE([$host_os],
|
||||
])
|
||||
|
||||
AS_CASE([$host_os],
|
||||
[cygwin*|mingw*|msys|pw32*|cegcc*], [
|
||||
[cygwin*|mingw*|msys|pw32*|cegcc*|eabi], [
|
||||
AX_CHECK_COMPILE_FLAG([-fno-asynchronous-unwind-tables], [
|
||||
[CFLAGS="$CFLAGS -fno-asynchronous-unwind-tables"]
|
||||
])
|
||||
@ -285,7 +285,7 @@ AS_CASE([$host_os],
|
||||
AS_IF([test "x$enable_ssp" != "xno"],[
|
||||
|
||||
AS_CASE([$host_os],
|
||||
[cygwin*|mingw*|msys|pw32*|cegcc*|haiku|none], [ ],
|
||||
[cygwin*|mingw*|msys|pw32*|cegcc*|haiku|none|eabi], [ ],
|
||||
[*], [
|
||||
AX_CHECK_COMPILE_FLAG([-fstack-protector], [
|
||||
AX_CHECK_LINK_FLAG([-fstack-protector],
|
||||
|
Loading…
Reference in New Issue
Block a user