From ed7d9d31bb475fc570d035da17f3c695182fe4ac Mon Sep 17 00:00:00 2001 From: Sean Bright Date: Mon, 28 Sep 2009 19:13:53 +0000 Subject: [PATCH] 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: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@220723 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- Makefile.rules | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile.rules b/Makefile.rules index 5e7799f006..55cf0bc718 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