diff --git a/configure.ac b/configure.ac index 5ea059eefa487..48834072c7427 100644 --- a/configure.ac +++ b/configure.ac @@ -850,6 +850,7 @@ if test "$use_hardening" != "no"; then AX_CHECK_COMPILE_FLAG([-fcf-protection=none -fcf-protection=full], [HARDENED_CXXFLAGS="$HARDENED_CXXFLAGS -fcf-protection=none -fcf-protection=full"]) HARDENED_CXXFLAGS="$HARDENED_CXXFLAGS -mcet-switch -mshstk" + HARDENED_LDFLAGS="$HARDENED_LDFLAGS -Wl,-z,cet-report=error" case $host in *mingw*)