From: Bruno Haible Date: Thu, 24 Jan 2019 03:10:48 +0000 (+0100) Subject: thread: Force linking with -lpthread, even when --as-needed is in use. X-Git-Tag: v1.0~5140 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=cca32830b57e91f837c01d15b8732f23ff97fc36;p=gnulib.git thread: Force linking with -lpthread, even when --as-needed is in use. Reported by Richard W.M. Jones in . * lib/glthread/thread.h (pthread_create): Don't declare weak. --- diff --git a/ChangeLog b/ChangeLog index 065dcb999d..f2006e57e5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2019-01-23 Bruno Haible + + thread: Force linking with -lpthread, even when --as-needed is in use. + Reported by Richard W.M. Jones in + . + * lib/glthread/thread.h (pthread_create): Don't declare weak. + 2019-01-23 Akim Demaille Bruno Haible diff --git a/lib/glthread/thread.h b/lib/glthread/thread.h index ca405085bf..1d2a544e24 100644 --- a/lib/glthread/thread.h +++ b/lib/glthread/thread.h @@ -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