summaryrefslogtreecommitdiff
path: root/lang/ruby/3.2/patches/patch-template_Makefile_in
blob: 572d5ba7441360afe836bd5b629071ed917929b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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)