From e69e76d44217c33c164e96725e941d43ad9a136c Mon Sep 17 00:00:00 2001 From: antirez Date: Thu, 26 Apr 2012 16:53:11 +0200 Subject: [PATCH] Re-introduce -g -rdynamic -ggdb when linking, fixing strack traces. A previous commit removed -g -rdynamic -ggdb as LDFLAGS, not allowing Redis to produce a stack trace wth symbol names on crash. This commit fixes the issue. --- src/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index 082b3757..dce0324b 100644 --- a/src/Makefile +++ b/src/Makefile @@ -47,12 +47,12 @@ endif ifeq ($(uname_S),SunOS) FINAL_CFLAGS= $(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS) $(REDIS_CFLAGS) -D__EXTENSIONS__ -D_XPG6 - FINAL_LDFLAGS= $(LDFLAGS) $(REDIS_LDFLAGS) + FINAL_LDFLAGS= $(LDFLAGS) $(REDIS_LDFLAGS) -g -ggdb FINAL_LIBS= -ldl -lnsl -lsocket -lm -lpthread DEBUG= -g -ggdb else FINAL_CFLAGS= $(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS) $(REDIS_CFLAGS) - FINAL_LDFLAGS= $(LDFLAGS) $(REDIS_LDFLAGS) + FINAL_LDFLAGS= $(LDFLAGS) $(REDIS_LDFLAGS) -g -rdynamic -ggdb FINAL_LIBS= -lm -pthread DEBUG= -g -rdynamic -ggdb endif -- 2.45.2