about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/sh/Makefile4
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 1296ee6d87..c1fbbe2121 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-10-31  Joseph Myers  <joseph@codesourcery.com>
+
+	* sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
+	New variable.
+
 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
 
 	* rt/tst-shm.c (worker): Correct checking for mmap failure.
diff --git a/sysdeps/sh/Makefile b/sysdeps/sh/Makefile
index cf18dedc45..bb7c553620 100644
--- a/sysdeps/sh/Makefile
+++ b/sysdeps/sh/Makefile
@@ -1,3 +1,7 @@
 ifeq ($(subdir),gmon)
 sysdep_routines += _mcount
 endif
+
+ifeq ($(subdir),debug)
+CFLAGS-backtrace.c += -funwind-tables
+endif