]> Savannah Git Hosting - gnulib.git/commitdiff
thread: Force linking with -lpthread, even when --as-needed is in use.
authorBruno Haible <bruno@clisp.org>
Thu, 24 Jan 2019 03:10:48 +0000 (04:10 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 24 Jan 2019 03:12:26 +0000 (04:12 +0100)
Reported by Richard W.M. Jones <rjones@redhat.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.

* lib/glthread/thread.h (pthread_create): Don't declare weak.

ChangeLog
lib/glthread/thread.h

index 065dcb999da30c2e743c3bcf59366214495a95cc..f2006e57e592e7edae19d20a0e1f89d516755e0e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2019-01-23  Bruno Haible  <bruno@clisp.org>
+
+       thread: Force linking with -lpthread, even when --as-needed is in use.
+       Reported by Richard W.M. Jones <rjones@redhat.com> in
+       <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
+       * lib/glthread/thread.h (pthread_create): Don't declare weak.
+
 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
             Bruno Haible  <bruno@clisp.org>
 
index ca405085bff30589ed508af2cf6c1b809cbf3a6a..1d2a544e24efcefe6e9639a5dc32998b22b97003 100644 (file)
@@ -133,8 +133,6 @@ extern int glthread_in_use (void);
    call to foo(...) in the same function.  To avoid this, we test the
    address of a function in libpthread that we don't use.  */
 
-#  pragma weak pthread_create
-
 #  ifndef pthread_sigmask /* Do not declare rpl_pthread_sigmask weak.  */
 #   pragma weak pthread_sigmask
 #  endif