X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=configure.ac;h=1a032e68d87e002ddb8c0fa5622a53370a3847d8;hb=ccb4fb6f7ac2efbb99d044aa072e75c035f504aa;hp=4c0f9260c18f533fbcc5b72aaa6647e5925f9217;hpb=8afb52a39a72805cd24b6979248135e0d8b17c32;p=tinc diff --git a/configure.ac b/configure.ac index 4c0f9260..1a032e68 100644 --- a/configure.ac +++ b/configure.ac @@ -140,6 +140,8 @@ AS_IF([test -d /sw/lib], [LIBS="$LIBS -L/sw/lib"]) dnl Compiler hardening flags dnl No -fstack-protector-all because it doesn't work on all platforms or architectures. +AX_CFLAGS_WARN_ALL(CFLAGS) + AC_ARG_ENABLE([hardening], AS_HELP_STRING([--disable-hardening], [disable compiler and linker hardening flags])) AS_IF([test "x$enable_hardening" != "xno"], [AX_CHECK_COMPILE_FLAG([-DFORTIFY_SOURCE=2], [CPPFLAGS="$CPPFLAGS -DFORTIFY_SOURCE=2"])