diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2022-08-29 17:42:49 +0900 |
---|---|---|
committer | usa <usa@garbagecollect.jp> | 2022-09-16 15:11:08 +0900 |
commit | 31bc55dc90aa18222d5ed968e62fea4d46554d8c (patch) | |
tree | 7f1e6c062387afbef3340575f2a177511c8901aa /configure.ac | |
parent | c9c2245c0a25176072e02db9254f0e0c84c805cd (diff) |
Backport https://github.com/ruby/ruby/pull/6193
Co-authored-by: Yuta Saito <kateinoigakukun@gmail.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 826a688871..92496bb2b7 100644 --- a/configure.ac +++ b/configure.ac @@ -2729,6 +2729,14 @@ AS_IF([test "$with_dln_a_out" != yes], [ : ${LDFLAGS=""} : ${LIBPATHENV=DYLD_FALLBACK_LIBRARY_PATH} : ${PRELOADENV=DYLD_INSERT_LIBRARIES} + 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)'} AS_IF([test "$GCC" = yes], [ |