summaryrefslogtreecommitdiff
path: root/libc/signal
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-01-15 12:27:41 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-01-15 12:27:41 +0100
commit4db2caac1ccfade5fcde67c9800d7f3512220137 (patch)
treea26a6ffefeb298451137231eb80a92b3d0ffb1fd /libc/signal
parent2b30ab7137da331d8ead24d244b8feb3e1028152 (diff)
libc: build abort with unwind-info for backtrace
If backtrace support is turned on, build raise() and abort() with unwind info (fixup 4c9b7f3c21ff21c199e54bfad2fdf3445fa4573d). Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/signal')
-rw-r--r--libc/signal/Makefile.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/signal/Makefile.in b/libc/signal/Makefile.in
index ed8598b07..bb5ba8fbf 100644
--- a/libc/signal/Makefile.in
+++ b/libc/signal/Makefile.in
@@ -24,7 +24,9 @@ ifneq ($(strip $(ARCH_OBJS)),)
CSRC-y := $(filter-out $(notdir $(ARCH_OBJS:.o=.c)),$(CSRC-y))
endif
+ifneq ($(UCLIBC_HAS_BACKTRACE),)
CFLAGS-raise.c = -fasynchronous-unwind-tables
+endif
SIGNAL_DIR := $(top_srcdir)libc/signal
SIGNAL_OUT := $(top_builddir)libc/signal