[CRIU] [PATCH 5/5] make: Switch to -02 by default

Cyrill Gorcunov gorcunov at openvz.org
Wed Feb 1 07:24:39 EST 2012


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>
---
 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
-- 
1.7.7.6



More information about the CRIU mailing list