Use tcmalloc_minimal and tell people how to build it

This commit is contained in:
Kenneth Heafield 2012-11-14 20:29:55 +00:00
parent be7e78c6bf
commit 030e2d40b2
2 changed files with 7 additions and 4 deletions

View File

@ -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

View File

@ -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 += <threading>multi:<library>tcmalloc ;
if ! [ option.get "without-tcmalloc" : : "yes" ] && [ test_library "tcmalloc_minimal" ] {
external-lib tcmalloc_minimal ;
requirements += <threading>multi:<library>tcmalloc_minimal ;
}
if [ option.get "enable-mpi" : : "yes" ] {