From a06a7db41cf33a91f60f0e6f5912c64dd8115623 Mon Sep 17 00:00:00 2001 From: arighi Date: Mon, 10 May 2010 16:22:14 +0000 Subject: [PATCH] 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 --- bertos/rules.mk | 3 +++ 1 file changed, 3 insertions(+) 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)) -- 2.25.1