ref: 6ebacd0cbfe3796e7ce80281c24aaf15d2d6ec48
parent: b5e9e7e823a81e4b913efffa093b612f5207a35b
author: Haibo Zhu <haibozhu@cisco.com>
date: Fri Dec 4 04:15:27 EST 2015
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