ruby-changes:73689
From: Jeremy <ko1@a...>
Date: Fri, 23 Sep 2022 05:52:11 +0900 (JST)
Subject: [ruby-changes:73689] 88bf8ad6e9 (master): Allow --enable-yjit on OpenBSD
https://git.ruby-lang.org/ruby.git/commit/?id=88bf8ad6e9 From 88bf8ad6e99fa36c7b4a0b5cbb6fc99777360855 Mon Sep 17 00:00:00 2001 From: Jeremy Evans <code@j...> Date: Thu, 22 Sep 2022 09:35:51 -0700 Subject: 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. --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 9823198960..a3566358bc 100644 --- a/configure.ac +++ b/configure.ac @@ -3767,6 +3767,10 @@ AS_CASE(["${YJIT_SUPPORT}"], https://github.com/ruby/ruby/blob/trunk/configure.ac#L3767 ])) 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)]) -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/