diff --git a/CMakeLists.txt b/CMakeLists.txt index 30612cc5d3d..d45cde7069a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -113,6 +113,7 @@ link_directories (${METRICA_SOURCE_DIR}/contrib/libdouble-conversion) link_directories (${METRICA_SOURCE_DIR}/contrib/libcpuid) link_directories (${METRICA_SOURCE_DIR}/contrib/libzstd) link_directories (${METRICA_SOURCE_DIR}/contrib/libre2) +link_directories (${METRICA_SOURCE_DIR}/contrib/libtcmalloc) link_directories (${METRICA_SOURCE_DIR}/contrib/libpoco/lib) link_directories (${METRICA_BINARY_DIR}/libs/libcommon) diff --git a/contrib/CMakeLists.txt b/contrib/CMakeLists.txt index 28350e450a5..0ac692ee9e7 100644 --- a/contrib/CMakeLists.txt +++ b/contrib/CMakeLists.txt @@ -7,6 +7,7 @@ add_subdirectory (libmetrohash) add_subdirectory (libpoco) add_subdirectory (libre2) add_subdirectory (libboost-threadpool) +add_subdirectory (libtcmalloc) IF (NOT AARCH64) add_subdirectory (libcpuid) diff --git a/doc/drafts/build.txt b/doc/drafts/build.txt index dda19440ae4..24f67c009cb 100644 --- a/doc/drafts/build.txt +++ b/doc/drafts/build.txt @@ -68,22 +68,6 @@ cd boost_1_60_0 sudo ./b2 install --toolset=gcc-5 -j $THREADS cd .. -# Install tcmalloc. Patch is important. - -wget https://googledrive.com/host/0B6NtGsLhIcf7MWxMMF9JdTN3UVk/gperftools-2.4.tar.gz -tar -xf gperftools-2.4.tar.gz -cd gperftools-2.4 -patch src/static_vars.cc < TCMallocGetenvSafe("TCMALLOC_AGGRESSIVE_DECOMMIT"), false); -END -./configure --enable-minimal -make -j $THREADS -sudo make install -cd .. - # Install mongoclient. This library is needed only for 'external dictionaries' with MongoDB source. This is rarely used but enabled by default. sudo apt-get install scons