[CRIU] [crtools-bot] make: Switch to -02 by default

Cyrill Gorcunov gorcunov at openvz.org
Wed Feb 1 08:23:44 EST 2012


The commit is pushed to "master" and will appear on git://github.com/cyrillos/crtools.git
------>
commit 501d85193cb356f6f6849af02814982356d18b73
Author: Cyrill Gorcunov <gorcunov at openvz.org>
Date:   Wed Feb 1 16:22:48 2012 +0400

    make: Switch to -02 by default
    
    And turn on -O0 -ggdb3 only if DEBUG=1.
    Optimization was turned off at early
    prototype stage so no need to carry it
    now.
    
    Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
    Acked-by: Pavel Emelyanov <xemul at parallels.com>
---
 Makefile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index 6ca916d..9d92cf6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 -include Makefile.inc
 
 CFLAGS		+= -I./include
-CFLAGS		+= -O0 -ggdb3
+CFLAGS		+= -O2
 
 LIBS		+= -lrt -lpthread
 
@@ -14,6 +14,7 @@ endif
 
 ifeq ($(DEBUG),1)
 	DEFINES += -DCR_DEBUG
+	CFLAGS	+= -O0 -ggdb3
 endif
 
 WARNINGS	+= -Wall -Wno-unused


More information about the CRIU mailing list