check for control flow integrity support in compiler

This commit is contained in:
Brent Cook
2024-01-08 22:43:31 -06:00
parent cc78bdf3dd
commit 31bb2f25f9

View File

@@ -94,6 +94,11 @@ AC_DEFUN([CHECK_C_HARDENING_OPTIONS], [
AC_SEARCH_LIBS([__stack_chk_guard],[ssp])
])
])
# Check for control-flow integrity support
AS_IF([test "x$HOST_OS" != "xdarwin"], [
CHECK_CFLAG([[-fcf-protection=full]])
])
])
# Restore CC, LD