diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-12-20 11:57:08 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-12-20 11:57:08 -0600 |
commit | b80eaf7a0505b5f2e4d434edee324f03cdeae416 (patch) | |
tree | 15df38ea7c2e35d53d5972a048e892a1a28eb522 /nuttx/configs/spark/usbnsh | |
parent | 9ed483d790a43b1ba5cf038c92eb27bcfb57df23 (diff) | |
download | px4-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.defs | 8 |
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 |