gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnurl] 325/411: configure: pass -pthread to Libs.private for pkg-config


From: gnunet
Subject: [gnurl] 325/411: configure: pass -pthread to Libs.private for pkg-config
Date: Wed, 13 Jan 2021 01:22:20 +0100

This is an automated email from the git hooks/post-receive script.

nikita pushed a commit to branch master
in repository gnurl.

commit 374329d773e6ffd0ea647edc35ac759888ad4643
Author: Daniel Stenberg <daniel@haxx.se>
AuthorDate: Sat Nov 7 00:33:16 2020 +0100

    configure: pass -pthread to Libs.private for pkg-config
    
    Reported-by: Cristian Morales Vega
    Fixes #6168
    Closes #6181
---
 configure.ac | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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)

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]