mirror of
https://github.com/moparisthebest/curl
synced 2024-12-24 09:08: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:
parent
5d903ce3a3
commit
374329d773
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user