mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
configure.ac: add miniruby to PREP when cross-compiling to darwin
miniruby is used to resolve symbols in ext bundles https://bugs.ruby-lang.org/issues/19239 Co-authored-by: Yuta Saito <kateinoigakukun@gmail.com>
This commit is contained in:
parent
c316a5f2f1
commit
e7bffe0c4b
Notes:
git
2022-12-18 03:57:13 +00:00
1 changed files with 4 additions and 0 deletions
|
@ -3352,6 +3352,10 @@ AS_IF([test x"$cross_compiling" = xyes], [
|
|||
AC_SUBST(XRUBY_RUBYLIBDIR)
|
||||
AC_SUBST(XRUBY_RUBYHDRDIR)
|
||||
PREP='$(arch)-fake.rb'
|
||||
AS_CASE(["$target_os"],[darwin*],[
|
||||
# darwin target requires miniruby for linking ext bundles
|
||||
PREP="$PREP"' miniruby$(EXEEXT)'
|
||||
])
|
||||
RUNRUBY_COMMAND='$(MINIRUBY) -I`cd $(srcdir)/lib; pwd`'
|
||||
RUNRUBY='$(RUNRUBY_COMMAND)'
|
||||
XRUBY='$(MINIRUBY)'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue