From aace504d8ca52521aa7952e3f4f00f193b96bd0d Mon Sep 17 00:00:00 2001 From: Amit Date: Mon, 25 Jan 2016 21:55:48 -0800 Subject: [PATCH] Added -g and -rdynamic compiler/linker options for release mode builds on linux to enable call stack generation in release builds --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4b044c23adeb..d3aee1798750 100644 --- a/Makefile +++ b/Makefile @@ -172,7 +172,8 @@ ifeq ("$(BUILDTYPE)","release") GENCODE_FLAGS := $(GENCODE_SM20) $(GENCODE_SM30) $(GENCODE_SM35) $(GENCODE_SM50) endif - CXXFLAGS += -O4 + CXXFLAGS += -g -O4 + LDFLAGS += -rdynamic CPPFLAGS += -DNDEBUG CUFLAGS += -O3 -use_fast_math -lineinfo $(GENCODE_FLAGS) endif