From: Sean Bright Date: Mon, 28 Sep 2009 19:09:25 +0000 (+0000) Subject: When selecting DONT_OPTIMIZE in menuselect, explicitly pass -O0 to the compiler X-Git-Tag: 1.4.27-rc2~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=913ba17b125e19d76c5a6ad8ed3d7dbb32b05614;p=thirdparty%2Fasterisk.git 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.4@220717 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/Makefile.rules b/Makefile.rules index 019e71b105..b1e116d59c 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