build: Add GCC stack-protector/SSP to default flag set
* configure.ac: Add GCC SSP / -fstack-protector-strong to default flag
set, when available, as part of defence in depth. At least some
distros already use SSP by default and it can detect buffer overflows
above a certain size.
diff --git a/configure.ac b/configure.ac
index deb48eb..1331dee 100755
--- a/configure.ac
+++ b/configure.ac
@@ -150,6 +150,7 @@
AC_C_FLAG([-Os], [
AC_C_FLAG([-O2])
])
+ AC_C_FLAG([-fstack-protector-strong])
AC_C_FLAG([-fpie])
AC_C_FLAG([-fno-omit-frame-pointer])
AC_C_FLAG([-Wall])