mirror of
https://github.com/moparisthebest/curl
synced 2024-12-24 17:18:48 -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"
|
if test "$USE_THREADS_POSIX" != "1"
|
||||||
then
|
then
|
||||||
CFLAGS="$CFLAGS -pthread"
|
CFLAGS="$CFLAGS -pthread"
|
||||||
|
# assign PTHREAD for pkg-config use
|
||||||
|
PTHREAD=" -pthread"
|
||||||
AC_CHECK_LIB(pthread, pthread_create,
|
AC_CHECK_LIB(pthread, pthread_create,
|
||||||
[USE_THREADS_POSIX=1],
|
[USE_THREADS_POSIX=1],
|
||||||
[ CFLAGS="$save_CFLAGS"])
|
[ CFLAGS="$save_CFLAGS"])
|
||||||
@ -4945,7 +4947,7 @@ CURL_CONFIGURE_SYMBOL_HIDING
|
|||||||
dnl
|
dnl
|
||||||
dnl All the library dependencies put into $LIB apply to libcurl only.
|
dnl All the library dependencies put into $LIB apply to libcurl only.
|
||||||
dnl
|
dnl
|
||||||
LIBCURL_LIBS=$LIBS
|
LIBCURL_LIBS="$LIBS$PTHREAD"
|
||||||
|
|
||||||
AC_SUBST(LIBCURL_LIBS)
|
AC_SUBST(LIBCURL_LIBS)
|
||||||
AC_SUBST(CURL_NETWORK_LIBS)
|
AC_SUBST(CURL_NETWORK_LIBS)
|
||||||
|
Loading…
Reference in New Issue
Block a user