From: Martin Willi Date: Wed, 18 May 2016 12:44:19 +0000 (+0200) Subject: configure: Check for a potential -lpthread by using -ldl X-Git-Tag: 5.5.0dr1~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=989db1bf2f8d3a81e1bcaee6ba7a455cc6fce74b;p=thirdparty%2Fstrongswan.git 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. --- diff --git a/configure.ac b/configure.ac index 6874832e1b..daabdd782b 100644 --- a/configure.ac +++ b/configure.ac @@ -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)