1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-23 16:48:49 -05:00

configure: pass -pthread to Libs.private for pkg-config

Reported-by: Cristian Morales Vega
Fixes #6168
Closes #6181
This commit is contained in:
Daniel Stenberg 2020-11-07 00:33:16 +01:00
parent 5d903ce3a3
commit 374329d773
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -4515,6 +4515,8 @@ if test "$want_pthreads" != "no"; then
if test "$USE_THREADS_POSIX" != "1"
then
CFLAGS="$CFLAGS -pthread"
# assign PTHREAD for pkg-config use
PTHREAD=" -pthread"
AC_CHECK_LIB(pthread, pthread_create,
[USE_THREADS_POSIX=1],
[ CFLAGS="$save_CFLAGS"])
@ -4945,7 +4947,7 @@ CURL_CONFIGURE_SYMBOL_HIDING
dnl
dnl All the library dependencies put into $LIB apply to libcurl only.
dnl
LIBCURL_LIBS=$LIBS
LIBCURL_LIBS="$LIBS$PTHREAD"
AC_SUBST(LIBCURL_LIBS)
AC_SUBST(CURL_NETWORK_LIBS)