OSDN Git Service

uclibc: nptl: fix __lll_lock_wait_private multiple definition
authorTony Wu <tung7970@gmail.com>
Fri, 25 Jul 2014 05:52:11 +0000 (13:52 +0800)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Mon, 18 Aug 2014 10:05:45 +0000 (12:05 +0200)
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>
libpthread/nptl/sysdeps/unix/sysv/linux/arm/lowlevellock.c
libpthread/nptl/sysdeps/unix/sysv/linux/lowlevellock.c
libpthread/nptl/sysdeps/unix/sysv/linux/metag/lowlevellock.c
libpthread/nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.c

index af864b3..cd42135 100644 (file)
@@ -23,6 +23,9 @@
 #include <tls.h>
 
 void
+#ifndef IS_IN_libpthread
+weak_function
+#endif
 __lll_lock_wait_private (int *futex)
 {
   do
index 1aa7960..2a5bf6d 100644 (file)
@@ -26,6 +26,9 @@
 
 
 void
+#ifndef IS_IN_libpthread
+weak_function
+#endif
 __lll_lock_wait_private (int *futex)
 {
   if (*futex == 2)
index 8c8955e..960e029 100644 (file)
@@ -24,6 +24,9 @@
 #include <tls.h>
 
 void
+#ifndef IS_IN_libpthread
+weak_function
+#endif
 __lll_lock_wait_private (int *futex)
 {
   do