]> git.saurik.com Git - redis.git/blobdiff - src/Makefile
Makefile typo fixed for tcmalloc option
[redis.git] / src / Makefile
index e1e989c60d04ff868865f8a95c1effba033d9e74..e83a022bd351eb3d0227465800b670f49dc7e368 100644 (file)
@@ -12,6 +12,11 @@ else
   CFLAGS?= -std=c99 -pedantic $(OPTIMIZATION) -Wall -W $(ARCH) $(PROF)
   CCLINK?= -lm -pthread
 endif
+
+ifeq ($(USE_TCMALLOC),yes)
+  CCLINK+= -ltcmalloc
+  CFLAGS+= -DUSE_TCMALLOC
+endif
 CCOPT= $(CFLAGS) $(CCLINK) $(ARCH) $(PROF)
 DEBUG?= -g -rdynamic -ggdb