diff --git a/tools/configure b/tools/configure index a05d8f64f4..6a060de2fc 100755 --- a/tools/configure +++ b/tools/configure @@ -373,6 +373,7 @@ EOF if [ -z "$ARG_THREAD_SUPPORT" ] || [ "$ARG_THREAD_SUPPORT" = "0" ]; then if [ "$sigaltstack" = "0" ]; then thread_support="HAVE_SIGALTSTACK_THREADS" + LDOPTS="$LDOPTS -lpthread" # pthread needed echo "Selected sigaltstack threads" elif [ "$fibers" = "0" ]; then thread_support="HAVE_WIN32_FIBER_THREADS"