diff options
author | David S. Miller <davem@davemloft.net> | 2013-01-21 14:13:04 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-01-21 14:15:30 -0800 |
commit | 7c1e01aabcec96173b6e276e67322125ec90dff7 (patch) | |
tree | ea47e29091c290fe359baad475699b33ddb86418 /sysdeps/sparc/Makefile | |
parent | ab087e0aa4bd9f12a73ca0b248f02d8a22d49e46 (diff) | |
download | glibc-7c1e01aabcec96173b6e276e67322125ec90dff7.tar glibc-7c1e01aabcec96173b6e276e67322125ec90dff7.tar.gz glibc-7c1e01aabcec96173b6e276e67322125ec90dff7.tar.bz2 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/Makefile | 4 |
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 |