Pārlūkot izejas kodu

uclibc: nptl: fix __lll_lock_wait_private multiple definition

Mark non-pthread __lll_lock_wait_private weak to avoid multiple
definition error in static link mode.

Signed-off-by: Tony Wu <tung7970@gmail.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Tony Wu 10 gadi atpakaļ
vecāks
revīzija
2d9740a65a

+ 3 - 0
libpthread/nptl/sysdeps/unix/sysv/linux/arm/lowlevellock.c

@@ -23,6 +23,9 @@
 #include <tls.h>
 
 void
+#ifndef IS_IN_libpthread
+weak_function
+#endif
 __lll_lock_wait_private (int *futex)
 {
   do

+ 3 - 0
libpthread/nptl/sysdeps/unix/sysv/linux/lowlevellock.c

@@ -26,6 +26,9 @@
 
 
 void
+#ifndef IS_IN_libpthread
+weak_function
+#endif
 __lll_lock_wait_private (int *futex)
 {
   if (*futex == 2)

+ 3 - 0
libpthread/nptl/sysdeps/unix/sysv/linux/metag/lowlevellock.c

@@ -24,6 +24,9 @@
 #include <tls.h>
 
 void
+#ifndef IS_IN_libpthread
+weak_function
+#endif
 __lll_lock_wait_private (int *futex)
 {
   do

+ 3 - 0
libpthread/nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.c

@@ -25,6 +25,9 @@
 
 
 void
+#ifndef IS_IN_libpthread
+weak_function
+#endif
 __lll_lock_wait_private (int *futex)
 {
   do