summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2016-10-17 02:30:14 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2016-10-17 02:30:14 +0200
commit2ca42af6c07afed6a5e94e8e3c889c728869fd2f (patch)
tree674474d19c06a8db7def000c8cf46caab8878be4
parent60ec52511fdcf1bb51267b0b9da415fd568e7785 (diff)
Fix too weak references when linking libpthread statically
* sysdeps/pthread/libc-lockP.h [IS_IN (libpthread)]: Do not make __pthread symbols weak.
-rw-r--r--sysdeps/pthread/libc-lockP.h2
1 files changed, 1 insertions, 1 deletions
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)