From 7d9f958d550ee7ac394794738eaa35086a64545d Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 28 Jun 2014 21:51:24 +0200 Subject: 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. --- toolchain/uclibc/patches/xxx-disable-gcc_eh.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 toolchain/uclibc/patches/xxx-disable-gcc_eh.patch (limited to 'toolchain/uclibc/patches/xxx-disable-gcc_eh.patch') 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) -- cgit v1.2.3