build: only use tcmalloc in release mode

This commit is contained in:
Avi Kivity
2014-09-11 12:08:04 +03:00
parent ef0c3dcc7d
commit 28e457db92

View File

@@ -11,7 +11,12 @@ opt.release = -O2 -flto
sanitize = $(sanitize.$(mode))
opt = $(opt.$(mode))
libs = -laio -ltcmalloc -lboost_program_options
libs.debug =
libs.release = -ltcmalloc
libs = -laio -lboost_program_options
libs += $(libs.$(mode))
LDFLAGS = $(libs)