1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-23 20:15:19 -07:00

Use -fstack-protector for all.

Might be replaced by -fstack-protector-strong later on.
This commit is contained in:
Frank Denis 2014-09-14 13:25:29 -07:00
parent 1217d30bae
commit 41ed891d56

View File

@ -183,19 +183,12 @@ AS_IF([test "x$enable_ssp" != "xno"],[
AS_CASE([$host_os], AS_CASE([$host_os],
[cygwin*|mingw*|msys|pw32*|cegcc*], [ ], [cygwin*|mingw*|msys|pw32*|cegcc*], [ ],
[dragonfly*], [ [*], [
AX_CHECK_COMPILE_FLAG([-fstack-protector], [ AX_CHECK_COMPILE_FLAG([-fstack-protector], [
AX_CHECK_LINK_FLAG([-fstack-protector], AX_CHECK_LINK_FLAG([-fstack-protector],
[CFLAGS="$CFLAGS -fstack-protector"] [CFLAGS="$CFLAGS -fstack-protector"]
) )
]) ])
],
[*], [
AX_CHECK_COMPILE_FLAG([-fstack-protector-all], [
AX_CHECK_LINK_FLAG([-fstack-protector-all],
[CFLAGS="$CFLAGS -fstack-protector-all"]
)
])
]) ])
]) ])