From 070437fca7d3e09b405882ae1bfc373ae0f57ad1 Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Sat, 11 Sep 2021 02:45:03 +0800 Subject: [PATCH] [build] Fix linking with tcmalloc (#4626) --- src/configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/configure b/src/configure index a24731995d6..fa88a6e1fb1 100755 --- a/src/configure +++ b/src/configure @@ -1307,7 +1307,7 @@ if $enable_tcmalloc ; then TCMALLOC_ROOT=$(rel2abs ../tools/gperftools) echo "Configuring tcmalloc since --enable-tcmalloc" if [ "$(uname)" == "Linux" ]; then - echo "LDLIBS += -Wl,-rpath=$TCMALLOC_ROOT/lib -ltcmalloc_minimal" >> kaldi.mk + echo "LDLIBS += -Wl,-rpath=$TCMALLOC_ROOT/lib -L$TCMALLOC_ROOT/lib -ltcmalloc_minimal" >> kaldi.mk else failure "Now, --enable-tcmalloc option is only supported for Linux" fi