cvs-libpthread-static-weak
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Tue, 18 Oct 2016 21:10:46 +0000 (21:10 +0000)
committerAurelien Jarno <aurel32@debian.org>
Tue, 18 Oct 2016 21:10:46 +0000 (21:10 +0000)
commit 2ca42af6c07afed6a5e94e8e3c889c728869fd2f
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Mon Oct 17 02:30:14 2016 +0200

    Fix too weak references when linking libpthread statically

    * sysdeps/pthread/libc-lockP.h [IS_IN (libpthread)]: Do not make __pthread
    symbols weak.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name cvs-libpthread-static-weak.diff

libpthread/sysdeps/pthread/libc-lockP.h

index 2631e0c9b88686ec8a319fc80deddd5e6727d6c7..c04881d9219055f1292e57568d3ab89ee562ffce 100644 (file)
@@ -106,7 +106,7 @@ extern int __pthread_atfork (void (*__prepare) (void),
 
 /* Make the pthread functions weak so that we can elide them from
    single-threaded processes.  */
-#ifndef __NO_WEAK_PTHREAD_ALIASES
+#if !defined(__NO_WEAK_PTHREAD_ALIASES) && !IS_IN (libpthread)
 # ifdef weak_extern
 weak_extern (__pthread_mutex_init)
 weak_extern (__pthread_mutex_destroy)