ports/lang/ruby/3.2/patches/patch-template_Makefile_in

17 lines
793 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Allow linking libruby to libc++abi on amd64/aarch64, so other
software that links to libruby other than ruby itself does
not need to manually handle arch-dependent linking.
Index: template/Makefile.in
--- template/Makefile.in.orig
+++ template/Makefile.in
@@ -339,7 +339,7 @@ verify-static-library: $(LIBRUBY_A)
$(LIBRUBY_SO):
@-[ -n "$(EXTSTATIC)" ] || $(PRE_LIBRUBY_UPDATE)
$(ECHO) linking shared-library $@
- $(Q) $(LDSHARED) $(DLDFLAGS) $(OBJS) $(DLDOBJS) $(SOLIBS) $(EXTSOLIBS) $(OUTFLAG)$@
+ $(Q) $(LDSHARED) ${LIBRUBY_DLDFLAGS} $(DLDFLAGS) $(OBJS) $(DLDOBJS) $(SOLIBS) $(EXTSOLIBS) $(OUTFLAG)$@
-$(Q) $(OBJCOPY) -w -L '$(SYMBOL_PREFIX)Init_*' -L '$(SYMBOL_PREFIX)ruby_static_id_*' \
-L '$(SYMBOL_PREFIX)*_threadptr_*' -L '$(SYMBOL_PREFIX)*_ec_*' $@
$(Q) $(POSTLINK)