diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2013-01-16 13:36:40 +0100 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2013-01-16 13:36:40 +0100 |
commit | 8d31a6e50db423b89082b64a3250eec1b94a7456 (patch) | |
tree | 491c357cc4828a95d8dbeeddebf14c1c3038419d /Rules.mak | |
parent | a716f8ad2c4ba124073ef517f0b4d2f49d3b4bb4 (diff) |
buildsys: link libgcc_eh if DODEBUG
with -O0 we (e.g. lockf) might end up with references to
_Unwind_Resume, so pull in gcc_eh in this case..
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'Rules.mak')
-rw-r--r-- | Rules.mak | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -804,6 +804,10 @@ 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 += $(if $(DODEBUG),$(LIBGCC_EH)) LIBGCC_DIR:=$(dir $(LIBGCC)) # moved from libpthread/linuxthreads |