summaryrefslogtreecommitdiff
path: root/toolchain/eglibc
diff options
context:
space:
mode:
Diffstat (limited to 'toolchain/eglibc')
-rw-r--r--toolchain/eglibc/patches/gcc-linker.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/toolchain/eglibc/patches/gcc-linker.patch b/toolchain/eglibc/patches/gcc-linker.patch
new file mode 100644
index 000000000..4944066dc
--- /dev/null
+++ b/toolchain/eglibc/patches/gcc-linker.patch
@@ -0,0 +1,15 @@
+diff -Nur eglibc-2.16.orig/libc/Makeconfig eglibc-2.16/libc/Makeconfig
+--- eglibc-2.16.orig/libc/Makeconfig 2012-07-31 09:00:21.000000000 +0200
++++ eglibc-2.16/libc/Makeconfig 2012-08-30 13:01:34.000000000 +0200
+@@ -521,9 +521,9 @@
+ else
+ libunwind = -lunwind
+ endif
+-libgcc_eh := -Wl,--as-needed -lgcc_s $(libunwind) -Wl,--no-as-needed
++libgcc_eh := -Wl,--as-needed $(libunwind) -Wl,--no-as-needed
+ gnulib := -lgcc $(libgcc_eh)
+-static-gnulib := -lgcc -lgcc_eh $(libunwind)
++static-gnulib := -lgcc $(libunwind)
+ libc.so-gnulib := -lgcc
+ endif
+ +preinit = $(addprefix $(csu-objpfx),crti.o)