X-Git-Url: https://git.librecmc.org/?p=oweals%2Ftinc.git;a=blobdiff_plain;f=configure.ac;h=dbde68fde4916b2006cef7398833492a5893879e;hp=0ef0c80c27bb8ae925318111cb8794091e54ec7d;hb=2236a27697c8a741250e4a4a2b3ad9bc048b4250;hpb=40b21d3ff4b50f7688e49651d1237987ce45128d diff --git a/configure.ac b/configure.ac index 0ef0c80..dbde68f 100644 --- a/configure.ac +++ b/configure.ac @@ -152,6 +152,8 @@ fi 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"])