diff options
author | Sitsofe Wheeler <sitsofe@yahoo.com> | 2020-07-26 03:23:27 +0100 |
---|---|---|
committer | Sitsofe Wheeler <sitsofe@yahoo.com> | 2020-07-26 11:55:10 +0100 |
commit | ab6e47140c06f23b6c6660659e360676621331d8 (patch) | |
tree | 64b124d87cfb7a56791e9ce8192cf917bdc46947 | |
parent | ea621cdbcd330c279b6ae2188735db980a8aa7ab (diff) | |
download | fio-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-x | configure | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -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" |