#! /bin/bash

set -e
set -x

if [ x"$TRAVIS" = xtrue ]; then
  CPU_COUNT=2
fi

mkdir build && cd build

LDFLAGS="-lrt" cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${PREFIX} -DCMAKE_VERBOSE_MAKEFILE=1

make -j$CPU_COUNT install



#! /bin/bash

set -e
set -x

if [ x"$TRAVIS" = xtrue ]; then
  CPU_COUNT=2
fi

mkdir build && cd build

# TODO(hzeller): even though gperftools are installed, -ltcmalloc is not found.
LDFLAGS="-lrt" cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${PREFIX} -DCMAKE_VERBOSE_MAKEFILE=1 -DNO_TCMALLOC=ON

make -j$CPU_COUNT install



Switch off use of tcmalloc: doesn't link currently.
Switch off use of tcmalloc: doesn't link currently.

Signed-off-by: Henner Zeller <259ad50fabbfd39355f36ecd6c0afca541ea66ef@acm.org>
