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:
+1
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user