support for compiling with tcmalloc

This commit is contained in:
antirez
2010-10-22 00:06:44 +02:00
parent 75fcab8c23
commit 0a802bd7a0
2 changed files with 19 additions and 0 deletions

View File

@ -12,6 +12,10 @@ else
CFLAGS?= -std=c99 -pedantic $(OPTIMIZATION) -Wall -W $(ARCH) $(PROF)
CCLINK?= -lm -pthread
endif
ifeq ($(USE_TCMALLOC),yes)
CCLINK+= -ltcmalloc
endif
CCOPT= $(CFLAGS) $(CCLINK) $(ARCH) $(PROF)
DEBUG?= -g -rdynamic -ggdb