diff options
author | antirez <antirez@gmail.com> | 2017-06-26 10:36:12 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2017-06-26 10:36:16 +0200 |
commit | c3998728a2674ebdbc3c24851adece5ccc9d3363 (patch) | |
tree | ca163f5c17b0a486ef7375479bbe3fc26041aa99 /src | |
parent | c9097393bf63172fcae014808f79ddf0d9706204 (diff) | |
download | redis-c3998728a2674ebdbc3c24851adece5ccc9d3363.tar.gz |
ARM: Fix stack trace generation on crash.
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile index 691b5aaea..24e960593 100644 --- a/src/Makefile +++ b/src/Makefile @@ -38,6 +38,11 @@ endif endif endif +# To get ARM stack traces if Redis crashes we need a special C flag. +ifneq (,$(findstring armv,$(uname_M))) + CFLAGS+=-funwind-tables +endif + # Backwards compatibility for selecting an allocator ifeq ($(USE_TCMALLOC),yes) MALLOC=tcmalloc |