aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.rules
diff options
context:
space:
mode:
authorseanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b>2009-09-28 19:13:55 +0000
committerseanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b>2009-09-28 19:13:55 +0000
commit10894afa267432e1ff9c3aad4041402e5c68b8e5 (patch)
tree2845f060d31dba53f0809517bec203a8a89cbf73 /Makefile.rules
parent87dede72eaf25f8aafeeda551b3a8e53d3ca0da4 (diff)
Merged revisions 220721 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ................ r220721 | seanbright | 2009-09-28 15:11:20 -0400 (Mon, 28 Sep 2009) | 10 lines Merged revisions 220717 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r220717 | seanbright | 2009-09-28 15:09:25 -0400 (Mon, 28 Sep 2009) | 3 lines 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.6.1@220724 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 5e7799f00..55cf0bc71 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