OSDN Git Service

disable linkage of gcc_eh
authorWaldemar Brodkorb <wbx@openadk.org>
Fri, 3 Oct 2014 04:11:32 +0000 (06:11 +0200)
committerWaldemar Brodkorb <wbx@openadk.org>
Fri, 3 Oct 2014 04:11:32 +0000 (06:11 +0200)
As recently discussed on the uClibc mailing list here:
http://lists.uclibc.org/pipermail/uclibc/2014-September/048659.html

I think it is not required for gcc 4.8.3, which is default in
f.e. OpenADK. Tested with a DODEBUG build for x86.

Rules.mak

index d6a2254..3cc38f8 100644 (file)
--- a/Rules.mak
+++ b/Rules.mak
@@ -822,11 +822,7 @@ ASFLAGS += $(ASFLAG_--noexecstack)
 
 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)