]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
When selecting DONT_OPTIMIZE in menuselect, explicitly pass -O0 to the compiler
authorSean Bright <sean@malleable.com>
Mon, 28 Sep 2009 19:09:25 +0000 (19:09 +0000)
committerSean Bright <sean@malleable.com>
Mon, 28 Sep 2009 19:09:25 +0000 (19:09 +0000)
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

Makefile.rules

index 019e71b105ff8c8e3eb79bc86423b1a313e10f12..b1e116d59cfb71302581305f8f72a3e6887e2bdf 100644 (file)
@@ -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