From: arighi Date: Mon, 10 May 2010 16:22:14 +0000 (+0000) Subject: Add -fomit-frame-pointer when we are not in debug mode. X-Git-Tag: 2.5.0~272 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=a06a7db41cf33a91f60f0e6f5912c64dd8115623;p=bertos.git Add -fomit-frame-pointer when we are not in debug mode. We can implement this in bertos/rules.mk since we already use different build options when debug mode is enabled or not. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3645 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/rules.mk b/bertos/rules.mk index a5dc7854..8ec098ae 100644 --- a/bertos/rules.mk +++ b/bertos/rules.mk @@ -161,6 +161,9 @@ ifeq ($$($(1)_DEBUG),1) $(1)_CFLAGS += -D_DEBUG $(1)_CXXFLAGS += -D_DEBUG +else + $(1)_CFLAGS += -fomit-frame-pointer + $(1)_CXXFLAGS += -fomit-frame-pointer endif $(1)_COBJ = $$(foreach file,$$($(1)_CSRC:%.c=%.o),$$(OBJDIR)/$(1)/$$(file))