Add CONFIG_DEBUG_SYMBOLS

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2053 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2009-09-15 14:18:15 +00:00
parent dfc3767bc6
commit ca7e2543e7
108 changed files with 284 additions and 107 deletions
+2 -2
View File
@@ -76,7 +76,7 @@ else
MAXOPTIMIZATION = -O2
endif
ifeq ("${CONFIG_DEBUG}","y")
ifeq ("${CONFIG_DEBUG_SYMBOLS}","y")
ARCHOPTIMIZATION = -g
else
ARCHOPTIMIZATION = $(MAXOPTIMIZATION) -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer
@@ -111,7 +111,7 @@ EXEEXT =
ifneq ($(CROSSDEV),arm-elf-)
LDFLAGS += -nostartfiles -nodefaultlibs
endif
ifeq ($(CONFIG_DEBUG),y)
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
LDFLAGS += -g
endif