FIRE-23662; Use absolute path for jemalloc to make .so detection work under all circumstances. Contributed by Lance Corrimal.

meow-7.2.2
Nicky 2019-03-01 12:24:16 +01:00
parent ad58c402fb
commit a810f6fb0c
1 changed files with 3 additions and 2 deletions

View File

@ -141,10 +141,11 @@ fi
fi
if test -f lib/libjemalloc.so
FSJEMALLOC="$(pwd)/lib/libjemalloc.so"
if [ -f ${FSJEMALLOC} ]
then
echo "Using jemalloc"
export LD_PRELOAD="${LD_PRELOAD}:lib/libjemalloc.so"
export LD_PRELOAD="${LD_PRELOAD}:${FSJEMALLOC}"
fi
export FS_CEF_PRELOAD="libcef.so"