Don't try to enable retpolines on Emscripten & pnacl
This commit is contained in:
parent
f3ce049a98
commit
ef3e5aadc7
@ -197,10 +197,11 @@ AC_CHECK_DEFINE([_FORTIFY_SOURCE], [], [
|
|||||||
[CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"])
|
[CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"])
|
||||||
])
|
])
|
||||||
|
|
||||||
|
AS_IF([test "x$EMSCRIPTEN" = "x" -a "$host_os" != "pnacl"], [
|
||||||
AX_CHECK_COMPILE_FLAG([-mindirect-branch=thunk],
|
AX_CHECK_COMPILE_FLAG([-mindirect-branch=thunk],
|
||||||
[CFLAGS="$CFLAGS -mindirect-branch=thunk"],
|
[CFLAGS="$CFLAGS -mindirect-branch=thunk"],
|
||||||
[
|
[AX_CHECK_COMPILE_FLAG([-mretpoline], [CFLAGS="$CFLAGS -mretpoline"])]
|
||||||
AX_CHECK_COMPILE_FLAG([-mretpoline], [CFLAGS="$CFLAGS -mretpoline"])
|
)
|
||||||
])
|
])
|
||||||
|
|
||||||
AX_CHECK_COMPILE_FLAG([-fvisibility=hidden],
|
AX_CHECK_COMPILE_FLAG([-fvisibility=hidden],
|
||||||
|
Loading…
Reference in New Issue
Block a user