summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2017-06-26 10:36:12 +0200
committerantirez <antirez@gmail.com>2017-06-26 10:36:16 +0200
commitc3998728a2674ebdbc3c24851adece5ccc9d3363 (patch)
treeca163f5c17b0a486ef7375479bbe3fc26041aa99 /src
parentc9097393bf63172fcae014808f79ddf0d9706204 (diff)
downloadredis-c3998728a2674ebdbc3c24851adece5ccc9d3363.tar.gz
ARM: Fix stack trace generation on crash.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile5
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