mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
Explicitly link in pthreads for lib/pthreadpool if required
No idea why it works on my Linux without -lpthread ... :-)
This commit is contained in:
parent
4b3e89c2e7
commit
cacfd6ee01
@ -6059,6 +6059,9 @@ AC_ARG_ENABLE(pthreadpool,
|
||||
[AS_HELP_STRING([--enable-pthreadpool], [Enable pthreads pool helper support (default=auto)])])
|
||||
|
||||
if test x"$enable_pthreadpool" != x"no" -a x"$samba_cv_HAVE_PTHREAD" = x"yes"; then
|
||||
AC_TRY_LINK([#include "pthread.h"],
|
||||
[pthread_create(NULL, NULL, NULL, NULL)],
|
||||
,LIBS="$LIBS -lpthread")
|
||||
AC_DEFINE(WITH_PTHREADPOOL, 1, [Whether to include pthreadpool helpers])
|
||||
AC_SUBST(PTHREADPOOL_OBJ, "lib/pthreadpool.o")
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user