diff options
author | Darren Tucker <dtucker@dtucker.net> | 2018-02-11 19:45:47 +1300 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2018-02-11 21:17:21 +1100 |
commit | bc02181c24fc551aab85eb2cff0f90380928ef43 (patch) | |
tree | 5fe6f0f99375e9b6d6368dae87407ebbe88bd0f9 | |
parent | 3377df00ea3fece5293db85fe63baef33bf5152e (diff) |
Fix test for -z,retpolineplt linker flag.
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 71174571..092c8230 100644 --- a/configure.ac +++ b/configure.ac @@ -166,7 +166,7 @@ if test "$GCC" = "yes" || test "$GCC" = "egcs"; then OSSH_CHECK_CFLAG_COMPILE([-mfunction-return=thunk]) # gcc OSSH_CHECK_CFLAG_COMPILE([-mindirect-branch=thunk]) # gcc OSSH_CHECK_CFLAG_COMPILE([-mretpoline]) # clang - OSSH_CHECK_CFLAG_LINK([-z retpolineplt]) + OSSH_CHECK_CFLAG_LINK([-Wl,-z,retpolineplt]) OSSH_CHECK_CFLAG_COMPILE([-D_FORTIFY_SOURCE=2]) OSSH_CHECK_LDFLAG_LINK([-Wl,-z,relro]) OSSH_CHECK_LDFLAG_LINK([-Wl,-z,now]) |