Permalink
Browse files

MB-5037 Make bucket-engine tcmalloc aware

We need to make bucket-engine tcmalloc aware even if we don't link
it with tcmalloc static library.

Change-Id: I20667ed02a57a0e6f4adfb9a9d77229e1909f5b6
Reviewed-on: http://review.couchbase.org/14913
Tested-by: Chiyoung Seo <chiyoung.seo@gmail.com>
Reviewed-by: Chiyoung Seo <chiyoung.seo@gmail.com>
  • Loading branch information...
1 parent 89006aa commit d9e9ffbf15f0788c13d4cb61a42e63164f1b39b1 @bcui6611 bcui6611 committed with chiyoung Apr 12, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 win32/Makefile.mingw
@@ -13,6 +13,14 @@ LOCAL=/usr/local
LOCALLIB=-L${LOCAL}/lib
LOCALINC=-I${LOCAL}/include
+TCMALLOC_FLAGS = -Wwrite-strings \
+ -Wno-sign-compare -DNO_FRAME_POINTER \
+ -DHAVE_LIBTCMALLOC_MINIMAL \
+ -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc \
+ -fno-builtin-calloc -fno-builtin-cfree \
+ -fno-builtin-memalign -fno-builtin-posix_memalign \
+ -fno-builtin-valloc -fno-builtin-pvalloc
+
MEMCACHED=../memcached
OBJDIR = .libs .libs/win32
@@ -27,6 +35,7 @@ all: ${BINARIES}
CFLAGS = -std=gnu99 -DNDEBUG -g \
-fno-strict-aliasing -Wstrict-prototypes -Wmissing-prototypes \
-Wmissing-declarations -Wredundant-decls \
+ $(TCMALLOC_FLAGS)
BUCKET_ENGINE_SRC = \
bucket_engine.c \

0 comments on commit d9e9ffb

Please sign in to comment.