From 0dae486eaafbb5f86fdfb27cd9355ef2a73da55d Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 26 Jun 2017 10:36:12 +0200 Subject: [PATCH] ARM: Fix stack trace generation on crash. --- src/Makefile | 5 +++++ 1 file changed, 5 insertions(+) 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