diff options
author | Yuta Saito <kateinoigakukun@gmail.com> | 2022-07-30 18:32:38 +0900 |
---|---|---|
committer | Yuta Saito <kateinoigakukun@gmail.com> | 2022-08-04 16:29:22 +0900 |
commit | 184fd94d7e8023d7720be985089bae00c4bdfa2b (patch) | |
tree | 81d1e87e09c81064a497ade86fc8d02f2b5945a6 /configure.ac | |
parent | 6d8b9a9d619821b722273d93cdc4645ae2e23ede (diff) | |
download | ruby-184fd94d7e8023d7720be985089bae00c4bdfa2b.tar.gz |
Resolve abi symbols from libruby.dylib when available
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 11 |
1 files 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= : ${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)'} |