summaryrefslogtreecommitdiff
path: root/toolchain/glibc/patches/gcc_eh.patch
diff options
context:
space:
mode:
Diffstat (limited to 'toolchain/glibc/patches/gcc_eh.patch')
-rw-r--r--toolchain/glibc/patches/gcc_eh.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/toolchain/glibc/patches/gcc_eh.patch b/toolchain/glibc/patches/gcc_eh.patch
new file mode 100644
index 000000000..10749dcdb
--- /dev/null
+++ b/toolchain/glibc/patches/gcc_eh.patch
@@ -0,0 +1,18 @@
+diff -Nur glibc-2.10.1.orig/Makeconfig glibc-2.10.1/Makeconfig
+--- glibc-2.10.1.orig/Makeconfig 2009-08-20 08:51:54.000000000 +0200
++++ glibc-2.10.1/Makeconfig 2009-08-21 01:53:59.000000000 +0200
+@@ -525,12 +525,12 @@
+ libunwind = -lunwind
+ endif
+ ifneq ($(have-as-needed),yes)
+- libgcc_eh := -lgcc_eh $(libunwind)
++ libgcc_eh := $(libunwind)
+ else
+ libgcc_eh := -Wl,--as-needed -lgcc_s$(libgcc_s_suffix) $(libunwind) -Wl,--no-as-needed
+ endif
+ gnulib := -lgcc $(libgcc_eh)
+-static-gnulib := -lgcc -lgcc_eh $(libunwind)
++static-gnulib := -lgcc $(libunwind)
+ libc.so-gnulib := -lgcc
+ endif
+ ifeq ($(elf),yes)