diff options
-rw-r--r-- | configure.ac | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 0476398ac..71174571b 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -163,6 +163,10 @@ if test "$GCC" = "yes" || test "$GCC" = "egcs"; then | |||
163 | OSSH_CHECK_CFLAG_COMPILE([-Wunused-result], [-Wno-unused-result]) | 163 | OSSH_CHECK_CFLAG_COMPILE([-Wunused-result], [-Wno-unused-result]) |
164 | OSSH_CHECK_CFLAG_COMPILE([-fno-strict-aliasing]) | 164 | OSSH_CHECK_CFLAG_COMPILE([-fno-strict-aliasing]) |
165 | if test "x$use_toolchain_hardening" = "x1"; then | 165 | if test "x$use_toolchain_hardening" = "x1"; then |
166 | OSSH_CHECK_CFLAG_COMPILE([-mfunction-return=thunk]) # gcc | ||
167 | OSSH_CHECK_CFLAG_COMPILE([-mindirect-branch=thunk]) # gcc | ||
168 | OSSH_CHECK_CFLAG_COMPILE([-mretpoline]) # clang | ||
169 | OSSH_CHECK_CFLAG_LINK([-z retpolineplt]) | ||
166 | OSSH_CHECK_CFLAG_COMPILE([-D_FORTIFY_SOURCE=2]) | 170 | OSSH_CHECK_CFLAG_COMPILE([-D_FORTIFY_SOURCE=2]) |
167 | OSSH_CHECK_LDFLAG_LINK([-Wl,-z,relro]) | 171 | OSSH_CHECK_LDFLAG_LINK([-Wl,-z,relro]) |
168 | OSSH_CHECK_LDFLAG_LINK([-Wl,-z,now]) | 172 | OSSH_CHECK_LDFLAG_LINK([-Wl,-z,now]) |