From a94cda2860f4ea87f254966f71307e928ffe9bcb Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 20 Dec 2013 13:23:42 -0600 Subject: Finishes separation of debug symbols and optimization selections --- nuttx/configs/olimex-lpc-h3131/nsh/Make.defs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'nuttx/configs/olimex-lpc-h3131') diff --git a/nuttx/configs/olimex-lpc-h3131/nsh/Make.defs b/nuttx/configs/olimex-lpc-h3131/nsh/Make.defs index 35ec5382e..6dce1ce42 100644 --- a/nuttx/configs/olimex-lpc-h3131/nsh/Make.defs +++ b/nuttx/configs/olimex-lpc-h3131/nsh/Make.defs @@ -67,8 +67,10 @@ ARCHCCMAJOR = ${shell echo $(ARCHCCVERSION) | cut -d'.' -f1} ifeq ($(CONFIG_DEBUG_SYMBOLS),y) ARCHOPTIMIZATION = -g -else - ARCHOPTIMIZATION = $(MAXOPTIMIZATION) -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer +endif + +ifneq ($(CONFIG_DEBUG_NOOPT),y) + ARCHOPTIMIZATION += $(MAXOPTIMIZATION) -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer endif ifeq ($(ARCHCCMAJOR),4) -- cgit v1.2.3