about summary refs log tree commit diff
path: root/ports/sysdeps/m68k
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2013-01-20 01:31:07 +0100
committerAndreas Schwab <schwab@linux-m68k.org>2013-01-20 14:29:57 +0100
commit7cd24045d6967c3ae0699fd58a98111ac9de0751 (patch)
treef1fb3114fcbc0a345a09fe7efc33081eba90160b /ports/sysdeps/m68k
parented689c2f74104b9d5c9ab0cd97122f93f89ffba5 (diff)
downloadglibc-7cd24045d6967c3ae0699fd58a98111ac9de0751.tar.gz
glibc-7cd24045d6967c3ae0699fd58a98111ac9de0751.tar.xz
glibc-7cd24045d6967c3ae0699fd58a98111ac9de0751.zip
m68k: add unwind tables to backtrace
Diffstat (limited to 'ports/sysdeps/m68k')
-rw-r--r--ports/sysdeps/m68k/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/ports/sysdeps/m68k/Makefile b/ports/sysdeps/m68k/Makefile
index ef798306bf..c5b5318f02 100644
--- a/ports/sysdeps/m68k/Makefile
+++ b/ports/sysdeps/m68k/Makefile
@@ -26,8 +26,14 @@ asm-CPPFLAGS += $(m68k-syntax-flag)
 
 pic-ccflag = -fpic
 
+ifeq ($(subdir),setjmp)
 # Make sure setjmp.c is compiled with a frame pointer
 CFLAGS-setjmp.c := -fno-omit-frame-pointer
+endif
+
+ifeq ($(subdir),debug)
+CFLAGS-backtrace.c += -funwind-tables
+endif
 
 ifeq ($(subdir),elf)
 CFLAGS-rtld.c += -Wno-uninitialized -Wno-unused