[Pkg-mongodb-maintainers] [pkg-mongodb] 343/394: Use tcmalloc on supported architectures

Apollon Oikonomopoulos apoikos at moszumanska.debian.org
Wed Sep 21 14:00:21 UTC 2016


This is an automated email from the git hooks/post-receive script.

apoikos pushed a commit to branch master
in repository pkg-mongodb.

commit a530fc18a217443c1776e70ddb14df9ebab10eb2
Author: Apollon Oikonomopoulos <apoikos at debian.org>
Date:   Thu Jan 14 17:58:45 2016 +0200

    Use tcmalloc on supported architectures
---
 debian/rules | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 2946015..633970d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -18,10 +18,17 @@ endif
 
 HARDENING_OPTIONS = CC="$(CC)" CFLAGS="$(CFLAGS)" \
   CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)"
-COMMON_OPTIONS = --use-system-snappy --use-system-tcmalloc --use-system-pcre \
+COMMON_OPTIONS = --use-system-snappy --use-system-pcre \
   --use-system-boost --use-system-v8 --use-system-yaml --ssl \
   $(DEB_SCONS_OPTIONS)
 
+gperftools_archs = amd64 i386 armhf
+ifneq (,$(filter $(DEB_HOST_ARCH), $(gperftools_archs)))
+COMMON_OPTIONS += --allocator=tcmalloc --use-system-tcmalloc
+else
+COMMON_OPTIONS += --allocator=system
+endif
+
 ifeq ($(DEB_HOST_ARCH), arm64)
 COMMON_OPTIONS += --disable-scripting
 endif

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mongodb/pkg-mongodb.git



More information about the Pkg-mongodb-maintainers mailing list