summaryrefslogtreecommitdiff
path: root/meta/recipes-devtools/gcc/gcc-4.9/0075-libgcc-use-ldflags.patch
blob: 325b72ab5fd9ea13e7c159b51d7bf02ac22cdeba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Link libgcc using LDFLAGS, not just SHLIB_LDFLAGS

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Upstream-Status: Pending

--- gcc-5.3.0.orig/libgcc/config/t-slibgcc
+++ gcc-5.3.0/libgcc/config/t-slibgcc
@@ -32,7 +32,7 @@ SHLIB_INSTALL_SOLINK = $(LN_S) $(SHLIB_S
 	$(DESTDIR)$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SOLINK)
 
 SHLIB_LINK = $(CC) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
-	$(SHLIB_LDFLAGS) \
+	$(LDFLAGS) $(SHLIB_LDFLAGS) \
 	-o $(SHLIB_DIR)/$(SHLIB_SONAME).tmp @multilib_flags@ \
 	$(SHLIB_OBJS) $(SHLIB_LC) && \
 	rm -f $(SHLIB_DIR)/$(SHLIB_SOLINK) && \