changeset 40123:3d62cdd3f081

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.
author Bruno Haible <bruno@clisp.org>
date Thu, 24 Jan 2019 04:10:48 +0100
parents 33ac33ab575c
children aca6fd159fdd
files ChangeLog lib/glthread/thread.h
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Jan 24 01:54:22 2019 +0100
+++ b/ChangeLog	Thu Jan 24 04:10:48 2019 +0100
@@ -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>
 
--- a/lib/glthread/thread.h	Thu Jan 24 01:54:22 2019 +0100
+++ b/lib/glthread/thread.h	Thu Jan 24 04:10:48 2019 +0100
@@ -133,8 +133,6 @@
    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