summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-11-07 00:33:16 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-11-07 00:34:50 +0100
commitc343bd38bdf131be09b32d2036bedd17f9dccdd8 (patch)
treeb4e20e9f6e212575d1fe6aa5d7b107931cd53da5
parent65bc6825240175ee4140e0fe8bb2daaf2ebd68e8 (diff)
downloadcurl-bagder/pkg-config-pthread.tar.gz
configure: pass -pthread to Libs.private for pkg-configbagder/pkg-config-pthread
Reported-by: Cristian Morales Vega Fixes #6168
-rwxr-xr-xconfigure.ac4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 7002744a2..bc206475a 100755
--- a/configure.ac
+++ b/configure.ac
@@ -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)