Navigation Menu

Skip to content

Commit

Permalink
Use malloc_conf() to detect jemalloc
Browse files Browse the repository at this point in the history
Because jemalloc 2.2.5 doesn't provide mallocx().
  • Loading branch information
kou committed Jan 25, 2015
1 parent 108a2f1 commit 25e2b3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Expand Up @@ -925,7 +925,7 @@ if test "x$with_jemalloc" != "xno"; then
if test "x$with_jemalloc" != "xyes"; then
LDFLAGS="-L$with_jemalloc $LDFLAGS"
fi
AC_SEARCH_LIBS(mallocx, jemalloc,
AC_SEARCH_LIBS(malloc_conf, jemalloc,
[jemalloc_available="yes"],
[AC_MSG_ERROR("No libjemalloc found")])
fi
Expand Down

0 comments on commit 25e2b3a

Please sign in to comment.