Make background_thread not dependent on libdl.

When not using libdl, still allows background_thread to be enabled.
This commit is contained in:
Qi Wang 2018-06-07 12:28:40 -07:00 committed by Qi Wang
parent 1f55a15467
commit 2db2d2ef5e
2 changed files with 9 additions and 3 deletions

View file

@ -2130,8 +2130,7 @@ fi
dnl ============================================================================
dnl Enable background threads if possible.
if test "x${have_pthread}" = "x1" -a "x${have_dlsym}" = "x1" \
-a "x${je_cv_os_unfair_lock}" != "xyes" ; then
if test "x${have_pthread}" = "x1" -a "x${je_cv_os_unfair_lock}" != "xyes" ; then
AC_DEFINE([JEMALLOC_BACKGROUND_THREAD])
fi