diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-06-28 21:51:24 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-06-28 21:52:30 +0200 |
commit | 7d9f958d550ee7ac394794738eaa35086a64545d (patch) | |
tree | c92855ba8ae7c86d89cd0d5d8d83acdd0755e86d /toolchain/uclibc/patches/xxx-disable-gcc_eh.patch | |
parent | dcd6c2ef08fc808fbb99fcc1ba326505b612360e (diff) |
enable shared libgcc for uClibc/glibc
unfortunately uClibc/glibc uses dlopen to access exception
handling code from libgcc_s.so.1. Pure static build is only
provided by musl.
Diffstat (limited to 'toolchain/uclibc/patches/xxx-disable-gcc_eh.patch')
-rw-r--r-- | toolchain/uclibc/patches/xxx-disable-gcc_eh.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/toolchain/uclibc/patches/xxx-disable-gcc_eh.patch b/toolchain/uclibc/patches/xxx-disable-gcc_eh.patch new file mode 100644 index 000000000..a7f1a2db8 --- /dev/null +++ b/toolchain/uclibc/patches/xxx-disable-gcc_eh.patch @@ -0,0 +1,14 @@ +diff -Nur uClibc-0.9.33.2.orig/Rules.mak uClibc-0.9.33.2/Rules.mak +--- uClibc-0.9.33.2.orig/Rules.mak 2014-06-28 12:12:25.000000000 +0200 ++++ uClibc-0.9.33.2/Rules.mak 2014-06-28 12:14:15.000000000 +0200 +@@ -819,10 +819,7 @@ + LIBGCC_CFLAGS ?= $(CFLAGS) $(CPU_CFLAGS-y) + $(eval $(call cache-output-var,LIBGCC,$(CC) $(LIBGCC_CFLAGS) -print-libgcc-file-name)) + $(eval $(call cache-output-var,LIBGCC_EH,$(CC) $(LIBGCC_CFLAGS) -print-file-name=libgcc_eh.a)) +-# with -O0 we (e.g. lockf) might end up with references to +-# _Unwind_Resume, so pull in gcc_eh in this case.. + LIBGCC_DIR:=$(dir $(LIBGCC)) +-LIBGCC += $(if $(DODEBUG),$(LIBGCC_EH)) + + # moved from libpthread/linuxthreads + ifeq ($(UCLIBC_CTOR_DTOR),y) |