blob: 96ae86263b480425998fd035b3eb3b477268a75b [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001From 21d8e7700fa0a9c4bf569dd366134060ae858832 Mon Sep 17 00:00:00 2001
Patrick Williamsc0f7c042017-02-23 20:41:17 -06002From: Christopher Larson <chris_larson@mentor.com>
3Date: Thu, 5 May 2016 10:59:07 -0700
Andrew Geisslerd1e89492021-02-12 15:35:20 -06004Subject: [PATCH] Obey LDFLAGS for the link of libruby
Patrick Williamsc0f7c042017-02-23 20:41:17 -06005
6Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Brad Bishop64c979e2019-11-04 13:55:29 -05007Upstream-Status: Pending
Andrew Geisslerd1e89492021-02-12 15:35:20 -06008
Patrick Williamsc0f7c042017-02-23 20:41:17 -06009---
Andrew Geissler82c905d2020-04-13 13:39:40 -050010 template/Makefile.in | 2 +-
Patrick Williamsc0f7c042017-02-23 20:41:17 -060011 1 file changed, 1 insertion(+), 1 deletion(-)
12
Andrew Geissler82c905d2020-04-13 13:39:40 -050013diff --git a/template/Makefile.in b/template/Makefile.in
Andrew Geissler517393d2023-01-13 08:55:19 -060014index 1456313..15b98a4 100644
Andrew Geissler82c905d2020-04-13 13:39:40 -050015--- a/template/Makefile.in
16+++ b/template/Makefile.in
Andrew Geissler517393d2023-01-13 08:55:19 -060017@@ -127,7 +127,7 @@ ENABLE_SHARED = @ENABLE_SHARED@
Patrick Williamsc0f7c042017-02-23 20:41:17 -060018 LDSHARED = @LIBRUBY_LDSHARED@
Brad Bishop64c979e2019-11-04 13:55:29 -050019 DLDSHARED = @DLDSHARED@
Andrew Geisslerd1e89492021-02-12 15:35:20 -060020 XDLDFLAGS = @DLDFLAGS@
Patrick Williamsc0f7c042017-02-23 20:41:17 -060021-DLDFLAGS = @LIBRUBY_DLDFLAGS@ $(XLDFLAGS) $(ARCH_FLAG)
22+DLDFLAGS = @LIBRUBY_DLDFLAGS@ @LDFLAGS@ $(XLDFLAGS) $(ARCH_FLAG)
23 SOLIBS = @SOLIBS@
Brad Bishop316dfdd2018-06-25 12:45:53 -040024 ENABLE_DEBUG_ENV = @ENABLE_DEBUG_ENV@
Andrew Geissler517393d2023-01-13 08:55:19 -060025 MAINLIBS = $(YJIT_LIBS) @MAINLIBS@