Skip to content

Commit

Permalink
Use tcmalloc_minimal and tell people how to build it
Browse files Browse the repository at this point in the history
  • Loading branch information
kpu committed Nov 14, 2012
1 parent be7e78c commit 030e2d4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion BUILD-INSTRUCTIONS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions Jamroot
Original file line number Diff line number Diff line change
Expand Up @@ -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" ] {
Expand Down

0 comments on commit 030e2d4

Please sign in to comment.