Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 1 | From 7e55147e8e609ace6f9eecd86a956636687671f0 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Wed, 4 May 2016 21:11:34 -0700 |
| 4 | Subject: [PATCH 33/40] Link libgcc using LDFLAGS, not just SHLIB_LDFLAGS |
| 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 |
| 15 | index 7e60b621a2d..ea22ede3361 100644 |
| 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) && \ |
| 27 | -- |
| 28 | 2.21.0 |
| 29 | |