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