[前][次][番号順一覧][スレッド一覧]

ruby-changes:72810

From: Yuta <ko1@a...>
Date: Thu, 4 Aug 2022 16:29:37 +0900 (JST)
Subject: [ruby-changes:72810] 184fd94d7e (master): Resolve abi symbols from libruby.dylib when available

https://git.ruby-lang.org/ruby.git/commit/?id=184fd94d7e

From 184fd94d7e8023d7720be985089bae00c4bdfa2b Mon Sep 17 00:00:00 2001
From: Yuta Saito <kateinoigakukun@g...>
Date: Sat, 30 Jul 2022 18:32:38 +0900
Subject: Resolve abi symbols from libruby.dylib when available

---
 configure.ac | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index c68b7632e6..9ed0c1ef9e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3011,10 +3011,13 @@ STATIC= https://github.com/ruby/ruby/blob/trunk/configure.ac#L3011
 			: ${LDFLAGS=""}
 			: ${LIBPATHENV=DYLD_FALLBACK_LIBRARY_PATH}
 			: ${PRELOADENV=DYLD_INSERT_LIBRARIES}
-			AS_IF([test "x$EXTSTATIC" = x], [
-                          # When building ext bundles, a mach-o bundle needs to know its loader
-                          # program to bind symbols from the ruby executable
-                          EXTDLDFLAGS="-bundle_loader '\$(BUILTRUBY)'"
+                        AS_IF([test x"$enable_shared" = xyes], [
+                            # Resolve symbols from libruby.dylib when --enable-shared
+                            EXTDLDFLAGS='$(LIBRUBYARG_SHARED)'
+                        ], [test "x$EXTSTATIC" = x], [
+                            # When building exts as bundles, a mach-o bundle needs to know its loader
+                            # program to bind symbols from the ruby executable
+                            EXTDLDFLAGS="-bundle_loader '\$(BUILTRUBY)'"
 			])
 			rb_cv_dlopen=yes],
         [aix*], [	: ${LDSHARED='$(CC)'}
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]