mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-19 18:15:18 -07:00
Add retpoline support for clang
Assembly implementations don't seem to be using any indirect calls
This commit is contained in:
parent
03f5e93e64
commit
1655dede9f
@ -203,7 +203,10 @@ AX_CHECK_COMPILE_FLAG([-fvisibility=hidden],
|
||||
[CFLAGS="$CFLAGS -fvisibility=hidden"])
|
||||
|
||||
AX_CHECK_COMPILE_FLAG([-mfunction-return=thunk -mindirect-branch=thunk],
|
||||
[CFLAGS="$CFLAGS -mfunction-return=thunk -mindirect-branch=thunk"])
|
||||
[CFLAGS="$CFLAGS -mfunction-return=thunk -mindirect-branch=thunk"],
|
||||
[
|
||||
AX_CHECK_COMPILE_FLAG([-mretpoline], [CFLAGS="$CFLAGS -mretpoline"])
|
||||
])
|
||||
|
||||
AS_CASE([$host_os], [cygwin*|mingw*|msys|pw32*|cegcc*], [ ], [
|
||||
AX_CHECK_COMPILE_FLAG([-fPIC], [CFLAGS="$CFLAGS -fPIC"])
|
||||
|
Loading…
Reference in New Issue
Block a user