From afc0bb1b78591e3efab9c3bbf4dc79b094aadffc Mon Sep 17 00:00:00 2001 From: GNU Libc Maintainers Date: Tue, 18 Oct 2016 21:10:46 +0000 Subject: [PATCH] cvs-libpthread-static-weak commit 2ca42af6c07afed6a5e94e8e3c889c728869fd2f Author: Samuel Thibault 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libpthread/sysdeps/pthread/libc-lockP.h b/libpthread/sysdeps/pthread/libc-lockP.h index 2631e0c9b..c04881d92 100644 --- a/libpthread/sysdeps/pthread/libc-lockP.h +++ b/libpthread/sysdeps/pthread/libc-lockP.h @@ -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) -- 2.30.2