about summary refs log tree commit diff
path: root/sysdeps/sparc/Makefile
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2013-01-21 14:13:04 -0800
committerDavid S. Miller <davem@davemloft.net>2013-01-21 14:15:30 -0800
commit7c1e01aabcec96173b6e276e67322125ec90dff7 (patch)
treeea47e29091c290fe359baad475699b33ddb86418 /sysdeps/sparc/Makefile
parentab087e0aa4bd9f12a73ca0b248f02d8a22d49e46 (diff)
downloadglibc-7c1e01aabcec96173b6e276e67322125ec90dff7.tar.gz
glibc-7c1e01aabcec96173b6e276e67322125ec90dff7.tar.xz
glibc-7c1e01aabcec96173b6e276e67322125ec90dff7.zip
Use libgcc unwinder for sparc backtraces, if available.
	* sysdeps/sparc/backtrace.c: New file.
	* sysdeps/sparc/sparc32/backtrace.h: New file.
	* sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
	* sysdeps/sparc/sparc64/backtrace.h: New file.
	* sysdeps/sparc/sparc64/backtrace.c: Delete.
	* sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
	-funwind-tables.
Diffstat (limited to 'sysdeps/sparc/Makefile')
-rw-r--r--sysdeps/sparc/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/sparc/Makefile b/sysdeps/sparc/Makefile
index 3f0c096400..31aaeaed8f 100644
--- a/sysdeps/sparc/Makefile
+++ b/sysdeps/sparc/Makefile
@@ -3,6 +3,10 @@ long-double-fcts = yes
 
 pie-ccflag = -fPIE
 
+ifeq ($(subdir),debug)
+CFLAGS-backtrace.c += -funwind-tables
+endif
+
 ifeq ($(subdir),gmon)
 sysdep_routines += sparc-mcount
 endif