summaryrefslogtreecommitdiff
path: root/nuttx/configs/spark/usbnsh
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-12-20 11:57:08 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-12-20 11:57:08 -0600
commitb80eaf7a0505b5f2e4d434edee324f03cdeae416 (patch)
tree15df38ea7c2e35d53d5972a048e892a1a28eb522 /nuttx/configs/spark/usbnsh
parent9ed483d790a43b1ba5cf038c92eb27bcfb57df23 (diff)
downloadpx4-nuttx-b80eaf7a0505b5f2e4d434edee324f03cdeae416.tar.gz
px4-nuttx-b80eaf7a0505b5f2e4d434edee324f03cdeae416.tar.bz2
px4-nuttx-b80eaf7a0505b5f2e4d434edee324f03cdeae416.zip
More separation of debug symbols and optimization selections
Diffstat (limited to 'nuttx/configs/spark/usbnsh')
-rw-r--r--nuttx/configs/spark/usbnsh/Make.defs8
1 files changed, 5 insertions, 3 deletions
diff --git a/nuttx/configs/spark/usbnsh/Make.defs b/nuttx/configs/spark/usbnsh/Make.defs
index 03f4533f3..ce10d4958 100644
--- a/nuttx/configs/spark/usbnsh/Make.defs
+++ b/nuttx/configs/spark/usbnsh/Make.defs
@@ -73,9 +73,11 @@ ARCHCCVERSION = ${shell $(CC) -v 2>&1 | sed -n '/^gcc version/p' | sed -e 's/^gc
ARCHCCMAJOR = ${shell echo $(ARCHCCVERSION) | cut -d'.' -f1}
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
- ARCHOPTIMIZATION = -g -Os
-else
- ARCHOPTIMIZATION = $(MAXOPTIMIZATION) -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer
+ ARCHOPTIMIZATION = -g
+endif
+
+ifneq ($(CONFIG_DEBUG_NOOPT),y)
+ ARCHOPTIMIZATION += $(MAXOPTIMIZATION) -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer
endif
ARCHCFLAGS = -fno-builtin