Permalink
Browse files

include recommended TCMALLOC_CFLAGS

  • Loading branch information...
1 parent 6ba30c7 commit 7491a97c39f0edd231112e6585b203c3258fec77 @falconindy committed Sep 22, 2012
Showing with 4 additions and 1 deletion.
  1. +2 −1 Makefile.am
  2. +2 −0 configure.ac
View
@@ -57,7 +57,8 @@ pkgfile_CFLAGS = \
$(AM_CFLAGS) \
$(ARCHIVE_CFLAGS) \
$(CURL_CFLAGS) \
- $(PCRE_CFLAGS)
+ $(PCRE_CFLAGS) \
+ $(TCMALLOC_CFLAGS)
pkgfile_LDADD = \
$(ARCHIVE_LIBS) \
View
@@ -63,6 +63,8 @@ if test "x$wanttcmalloc" != "xno" ; then
PKG_CHECK_EXISTS([libtcmalloc], [havetcmalloc=yes], [havetcmalloc=no])
if test "x$havetcmalloc" = "xyes"; then
PKG_CHECK_MODULES(TCMALLOC, [libtcmalloc])
+ # upstream recommends these, but doesn't include them in the .pc file
+ TCMALLOC_CFLAGS="-fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free"
allocator=tcmalloc
else
if test "x$wanttcmalloc" = "xyes"; then

0 comments on commit 7491a97

Please sign in to comment.