aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.rules
diff options
context:
space:
mode:
authorseanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b>2009-09-28 19:09:25 +0000
committerseanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b>2009-09-28 19:09:25 +0000
commit8b8911ac3a42348f7b2b40f4d2afe3fd627539e5 (patch)
treeb805c7a167d1f3918c45ca83a0e692290440f8b2 /Makefile.rules
parent4351071712c1b7452d2ae58bdf4e6103c642145c (diff)
When selecting DONT_OPTIMIZE in menuselect, explicitly pass -O0 to the compiler
so we override any default optimization levels for a particular install. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@220717 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 019e71b10..b1e116d59 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -39,6 +39,8 @@ OPTIMIZE?=-O6
ifeq ($(findstring DONT_OPTIMIZE,$(MENUSELECT_CFLAGS)),)
_ASTCFLAGS+=$(OPTIMIZE)
+else
+ _ASTCFLAGS+=-O0
endif
# shortcuts for common combinations of flags; these must be recursively expanded so that