mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Allow --enable-yjit on OpenBSD
yjit uses _Unwind_* functions from libunwind. These functions are available in libc++abi (which requires libpthread), so add those to LDFLAGS if enabling yjit on OpenBSD.
This commit is contained in:
parent
b5c459d57a
commit
88bf8ad6e9
Notes:
git
2022-09-23 05:52:18 +09:00
1 changed files with 4 additions and 0 deletions
|
@ -3767,6 +3767,10 @@ AS_CASE(["${YJIT_SUPPORT}"],
|
|||
]))
|
||||
|
||||
YJIT_LIBS="yjit/target/${rb_rust_target_subdir}/libyjit.a"
|
||||
AS_CASE(["$target_os"],[openbsd*],[
|
||||
# Link libc++abi (which requires libpthread) for _Unwind_* functions needed by yjit
|
||||
LDFLAGS="$LDFLAGS -lpthread -lc++abi"
|
||||
])
|
||||
YJIT_OBJ='yjit.$(OBJEXT)'
|
||||
AC_DEFINE(USE_YJIT, 1)
|
||||
], [AC_DEFINE(USE_YJIT, 0)])
|
||||
|
|
Loading…
Reference in a new issue