diff options
author | Brent Cook <busterb@gmail.com> | 2024-01-08 22:43:31 -0600 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2024-02-12 03:14:54 -0600 |
commit | 31bb2f25f9968970cebc84e7da54a3a02d2fc4de (patch) | |
tree | 3471c06e8e7ecac187541fcc3733a69bc495d01b /m4 | |
parent | cc78bdf3dd7ed883412bd22c2638214fe0ca3619 (diff) | |
download | portable-31bb2f25f9968970cebc84e7da54a3a02d2fc4de.tar.gz portable-31bb2f25f9968970cebc84e7da54a3a02d2fc4de.tar.bz2 portable-31bb2f25f9968970cebc84e7da54a3a02d2fc4de.zip |
check for control flow integrity support in compiler
Diffstat (limited to 'm4')
-rw-r--r-- | m4/check-hardening-options.m4 | 5 |
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 |