From 2ca42af6c07afed6a5e94e8e3c889c728869fd2f Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 17 Oct 2016 02:30:14 +0200 Subject: Fix too weak references when linking libpthread statically * sysdeps/pthread/libc-lockP.h [IS_IN (libpthread)]: Do not make __pthread symbols weak. --- sysdeps/pthread/libc-lockP.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdeps/pthread/libc-lockP.h b/sysdeps/pthread/libc-lockP.h index 2631e0c..c04881d 100644 --- a/sysdeps/pthread/libc-lockP.h +++ b/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) -- cgit v1.2.3