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],
[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"]
)
])
])
])