mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
Use -fstack-protector for all.
Might be replaced by -fstack-protector-strong later on.
This commit is contained in:
+1
-8
@@ -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"]
|
||||
)
|
||||
])
|
||||
])
|
||||
])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user