From 33330021a1849318fb3e190fb753e007fd8098f9 Mon Sep 17 00:00:00 2001 From: Christopher Larson Date: Wed, 4 May 2016 14:52:49 -0700 Subject: gcc: obey ldflags in the link of libgcc Explicitly obey it, the way it should, rather than only relying on --with-linker-hash-style. (From OE-Core rev: 9095742d1468477baefe69098817f38a8d2dd750) Signed-off-by: Christopher Larson Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- .../gcc/gcc-4.9/0075-libgcc-use-ldflags.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 meta/recipes-devtools/gcc/gcc-4.9/0075-libgcc-use-ldflags.patch (limited to 'meta/recipes-devtools/gcc/gcc-4.9') diff --git a/meta/recipes-devtools/gcc/gcc-4.9/0075-libgcc-use-ldflags.patch b/meta/recipes-devtools/gcc/gcc-4.9/0075-libgcc-use-ldflags.patch new file mode 100644 index 0000000000..325b72ab5f --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.9/0075-libgcc-use-ldflags.patch @@ -0,0 +1,16 @@ +Link libgcc using LDFLAGS, not just SHLIB_LDFLAGS + +Signed-off-by: Christopher Larson +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) && \ -- cgit v1.2.3-54-g00ecf