Andrew Geissler | c182c62 | 2020-05-15 14:13:32 -0500 | [diff] [blame] | 1 | From fbc926dbf6a47fa623b9c94cd9b09a0e90448fdc Mon Sep 17 00:00:00 2001 |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Wed, 4 May 2016 21:11:34 -0700 |
Andrew Geissler | c182c62 | 2020-05-15 14:13:32 -0500 | [diff] [blame] | 4 | Subject: [PATCH] Link libgcc using LDFLAGS, not just SHLIB_LDFLAGS |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 5 | |
| 6 | Upstream-Status: Pending |
| 7 | |
| 8 | Signed-off-by: Christopher Larson <chris_larson@mentor.com> |
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 10 | --- |
| 11 | libgcc/config/t-slibgcc | 2 +- |
| 12 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 13 | |
| 14 | diff --git a/libgcc/config/t-slibgcc b/libgcc/config/t-slibgcc |
Andrew Geissler | c182c62 | 2020-05-15 14:13:32 -0500 | [diff] [blame] | 15 | index c997553447c..330352c2c81 100644 |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 16 | --- a/libgcc/config/t-slibgcc |
| 17 | +++ b/libgcc/config/t-slibgcc |
| 18 | @@ -32,7 +32,7 @@ SHLIB_INSTALL_SOLINK = $(LN_S) $(SHLIB_SONAME) \ |
| 19 | $(DESTDIR)$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SOLINK) |
| 20 | |
| 21 | SHLIB_LINK = $(CC) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \ |
| 22 | - $(SHLIB_LDFLAGS) \ |
| 23 | + $(LDFLAGS) $(SHLIB_LDFLAGS) \ |
| 24 | -o $(SHLIB_DIR)/$(SHLIB_SONAME).tmp @multilib_flags@ \ |
| 25 | $(SHLIB_OBJS) $(SHLIB_LC) && \ |
| 26 | rm -f $(SHLIB_DIR)/$(SHLIB_SOLINK) && \ |