summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSitsofe Wheeler <sitsofe@yahoo.com>2020-07-26 03:23:27 +0100
committerSitsofe Wheeler <sitsofe@yahoo.com>2020-07-26 11:55:10 +0100
commitab6e47140c06f23b6c6660659e360676621331d8 (patch)
tree64b124d87cfb7a56791e9ce8192cf917bdc46947
parentea621cdbcd330c279b6ae2188735db980a8aa7ab (diff)
downloadfio-ab6e47140c06f23b6c6660659e360676621331d8.tar.gz
fio-ab6e47140c06f23b6c6660659e360676621331d8.tar.bz2
configure: check for Debian/Ubuntu tcmalloc_minimal
Debian derived distros have a libtcmalloc-minimal4 package that only has a versioned libtcmalloc_minimal.so.4 inside, so try explicitly searching for it when looking for tcmalloc. Signed-off-by: Sitsofe Wheeler <sitsofe@yahoo.com>
-rwxr-xr-xconfigure15
1 files changed, 10 insertions, 5 deletions
diff --git a/configure b/configure
index 25216c63..f44a5baa 100755
--- a/configure
+++ b/configure
@@ -3006,11 +3006,16 @@ int main(int argc, char **argv)
return 0;
}
EOF
-if test "$disable_tcmalloc" != "yes" && compile_prog "" "-ltcmalloc" "tcmalloc"; then
- LIBS="-ltcmalloc $LIBS"
- tcmalloc="yes"
-else
- tcmalloc="no"
+if test "$disable_tcmalloc" != "yes"; then
+ if compile_prog "" "-ltcmalloc" "tcmalloc"; then
+ tcmalloc="yes"
+ LIBS="-ltcmalloc $LIBS"
+ elif compile_prog "" "-l:libtcmalloc_minimal.so.4" "tcmalloc_minimal4"; then
+ tcmalloc="yes"
+ LIBS="-l:libtcmalloc_minimal.so.4 $LIBS"
+ else
+ tcmalloc="no"
+ fi
fi
print_config "TCMalloc support" "$tcmalloc"