aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-03-02 22:19:52 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-03-02 22:19:52 +0000
commitac248437782e0f2c66008c6c1eb44c7393233dc8 (patch)
tree7770916c18e38112a15d7acf737a885c88b5ea47 /Makefile
parent3d77ba332f6b6707b6ca17aa1a764242502807fb (diff)
If debugging, the frame pointer is helpful
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@11607 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 8c22fefe8..348cdaa39 100644
--- a/Makefile
+++ b/Makefile
@@ -331,7 +331,9 @@ ASTCFLAGS+= $(TRACE_FRAMES)
ASTCFLAGS+= $(MALLOC_DEBUG)
ASTCFLAGS+= $(BUSYDETECT)
ASTCFLAGS+= $(OPTIONS)
+ifneq ($(findstring dont-optimize,$(MAKECMDGOALS)),dont-optimize)
ASTCFLAGS+= -fomit-frame-pointer
+endif
SUBDIRS=res channels pbx apps codecs formats agi cdr funcs utils stdtime
OBJS=io.o sched.o logger.o frame.o loader.o config.o channel.o \