diff options
author | Christopher Larson <chris_larson@mentor.com> | 2016-05-04 14:52:49 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-11 10:33:42 +0100 |
commit | 33330021a1849318fb3e190fb753e007fd8098f9 (patch) | |
tree | 379a9f54feb1184dd21b91d08ab470e936084dfb /meta/recipes-devtools/gcc/gcc-4.9 | |
parent | 47c994fff0444c984659e31cf7136b036f2e33f0 (diff) | |
download | poky-33330021a1849318fb3e190fb753e007fd8098f9.tar.gz |
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 <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.9')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.9/0075-libgcc-use-ldflags.patch | 16 |
1 files changed, 16 insertions, 0 deletions
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 @@ | |||
1 | Link libgcc using LDFLAGS, not just SHLIB_LDFLAGS | ||
2 | |||
3 | Signed-off-by: Christopher Larson <chris_larson@mentor.com> | ||
4 | Upstream-Status: Pending | ||
5 | |||
6 | --- gcc-5.3.0.orig/libgcc/config/t-slibgcc | ||
7 | +++ gcc-5.3.0/libgcc/config/t-slibgcc | ||
8 | @@ -32,7 +32,7 @@ SHLIB_INSTALL_SOLINK = $(LN_S) $(SHLIB_S | ||
9 | $(DESTDIR)$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SOLINK) | ||
10 | |||
11 | SHLIB_LINK = $(CC) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \ | ||
12 | - $(SHLIB_LDFLAGS) \ | ||
13 | + $(LDFLAGS) $(SHLIB_LDFLAGS) \ | ||
14 | -o $(SHLIB_DIR)/$(SHLIB_SONAME).tmp @multilib_flags@ \ | ||
15 | $(SHLIB_OBJS) $(SHLIB_LC) && \ | ||
16 | rm -f $(SHLIB_DIR)/$(SHLIB_SOLINK) && \ | ||