From 030e2d40b22b49f45f6a06b35d60666816990801 Mon Sep 17 00:00:00 2001 From: Kenneth Heafield Date: Wed, 14 Nov 2012 20:29:55 +0000 Subject: [PATCH] Use tcmalloc_minimal and tell people how to build it --- BUILD-INSTRUCTIONS.txt | 5 ++++- Jamroot | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/BUILD-INSTRUCTIONS.txt b/BUILD-INSTRUCTIONS.txt index 0ddd16070c..d3b3e43305 100644 --- a/BUILD-INSTRUCTIONS.txt +++ b/BUILD-INSTRUCTIONS.txt @@ -69,7 +69,10 @@ Add all the above code to your .bashrc or .bash_login as appropriate. Then you're ready to install packages in non-standard paths: #For autotools packages e.g. xmlrpc-c -./configure --prefix=$PREFIX --libdir=$PREFIX/lib64 [other options here] +./configure --prefix=$PREFIX --libdir=$LIBDIR [other options here] + +#For tcmalloc (we only need the minimal version) +./configure --prefix=$PREFIX --libdir=$LIBDIR --enable-shared --enable-static --enable-minimal #For Boost: ./bootstrap.sh diff --git a/Jamroot b/Jamroot index 62d9409054..b6108baf94 100644 --- a/Jamroot +++ b/Jamroot @@ -75,9 +75,9 @@ include $(TOP)/jam-files/sanity.jam ; boost 103600 ; external-lib z ; -if ! [ option.get "without-tcmalloc" : : "yes" ] && [ test_library "tcmalloc" ] { - external-lib tcmalloc ; - requirements += multi:tcmalloc ; +if ! [ option.get "without-tcmalloc" : : "yes" ] && [ test_library "tcmalloc_minimal" ] { + external-lib tcmalloc_minimal ; + requirements += multi:tcmalloc_minimal ; } if [ option.get "enable-mpi" : : "yes" ] {