mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-19 10:05:05 -07:00
Use -fstack-protector for all.
Might be replaced by -fstack-protector-strong later on.
This commit is contained in:
parent
1217d30bae
commit
41ed891d56
@ -183,19 +183,12 @@ AS_IF([test "x$enable_ssp" != "xno"],[
|
||||
|
||||
AS_CASE([$host_os],
|
||||
[cygwin*|mingw*|msys|pw32*|cegcc*], [ ],
|
||||
[dragonfly*], [
|
||||
[*], [
|
||||
AX_CHECK_COMPILE_FLAG([-fstack-protector], [
|
||||
AX_CHECK_LINK_FLAG([-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"]
|
||||
)
|
||||
])
|
||||
])
|
||||
])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user