configure: Check for a potential -lpthread by using -ldl

Some pthread library variants depend on libdl, hence we must pass such a
library to successfully build against libpthread.
This commit is contained in:
Martin Willi
2016-05-18 14:46:20 +02:00
parent 310b583925
commit 989db1bf2f
+1 -1
View File
@@ -486,7 +486,7 @@ AC_SEARCH_LIBS(socket, socket, [SOCKLIB=$LIBS],
AC_SUBST(SOCKLIB)
# Android has pthread_* functions in bionic (libc), others need libpthread
LIBS=""
LIBS=$DLLIB
AC_SEARCH_LIBS(pthread_create, pthread, [PTHREADLIB=$LIBS])
AC_SUBST(PTHREADLIB)