aboutsummaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4')
-rw-r--r--m4/check-hardening-options.m45
1 files changed, 5 insertions, 0 deletions
diff --git a/m4/check-hardening-options.m4 b/m4/check-hardening-options.m4
index 4b5784b..2cb3083 100644
--- a/m4/check-hardening-options.m4
+++ b/m4/check-hardening-options.m4
@@ -94,6 +94,11 @@ AC_DEFUN([CHECK_C_HARDENING_OPTIONS], [
94 AC_SEARCH_LIBS([__stack_chk_guard],[ssp]) 94 AC_SEARCH_LIBS([__stack_chk_guard],[ssp])
95 ]) 95 ])
96 ]) 96 ])
97
98 # Check for control-flow integrity support
99 AS_IF([test "x$HOST_OS" != "xdarwin"], [
100 CHECK_CFLAG([[-fcf-protection=full]])
101 ])
97 ]) 102 ])
98 103
99 # Restore CC, LD 104 # Restore CC, LD