ref: 642d5aa4534eab153cee7562e7d25291cec02239
parent: 8ee4fdef2875706a9ca4690aff20259ee4ffaee7
parent: 6ebacd0cbfe3796e7ce80281c24aaf15d2d6ec48
author: HaiboZhu <haibozhu@cisco.com>
date: Mon Dec 7 09:26:09 EST 2015
Merge pull request #2295 from HaiboZhu/Add_Debug_symbols_in_makefile Add DEBUGSYMBOLS option for makefile under release mode
--- a/Makefile
+++ b/Makefile
@@ -52,6 +52,10 @@
ifeq ($(BUILDTYPE), Release)
CFLAGS += $(CFLAGS_OPT)
USE_ASM = Yes
+ifeq ($(DEBUGSYMBOLS), True)
+CFLAGS += -g
+CXXFLAGS += -g
+endif
else
CFLAGS += $(CFLAGS_DEBUG)
USE_ASM = No