Commit f7c22fc7 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

make: Build crtools with -O2 by default

Enable debugging only if DEBUG=1 provided.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 1663d749
include Makefile.inc
CFLAGS += -I./include
CFLAGS += -O0 -ggdb3 -fno-strict-aliasing
CFLAGS += -I./include -fno-strict-aliasing
LIBS += -lrt -lpthread -lprotobuf-c
......@@ -16,6 +15,13 @@ ifeq ($(DEBUG),1)
DEFINES += -DCR_DEBUG
endif
ifeq ($(DEBUG),1)
DEFINES += -DCR_DEBUG
CFLAGS += -O0 -ggdb3
else
CFLAGS += -O2
endif
WARNINGS += -Wall
CFLAGS += $(WARNINGS) $(DEFINES)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment