From 2d9740a65a81fe050f99479c2a2f38b6a3198a8e Mon Sep 17 00:00:00 2001 From: Tony Wu Date: Fri, 25 Jul 2014 13:52:11 +0800 Subject: 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 Signed-off-by: Bernhard Reutner-Fischer --- libpthread/nptl/sysdeps/unix/sysv/linux/arm/lowlevellock.c | 3 +++ libpthread/nptl/sysdeps/unix/sysv/linux/lowlevellock.c | 3 +++ libpthread/nptl/sysdeps/unix/sysv/linux/metag/lowlevellock.c | 3 +++ libpthread/nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.c | 3 +++ 4 files changed, 12 insertions(+) (limited to 'libpthread/nptl/sysdeps/unix/sysv/linux') diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/arm/lowlevellock.c b/libpthread/nptl/sysdeps/unix/sysv/linux/arm/lowlevellock.c index af864b3d5..cd4213573 100644 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/arm/lowlevellock.c +++ b/libpthread/nptl/sysdeps/unix/sysv/linux/arm/lowlevellock.c @@ -23,6 +23,9 @@ #include void +#ifndef IS_IN_libpthread +weak_function +#endif __lll_lock_wait_private (int *futex) { do diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/lowlevellock.c b/libpthread/nptl/sysdeps/unix/sysv/linux/lowlevellock.c index 1aa79609a..2a5bf6dd9 100644 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/lowlevellock.c +++ b/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) diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/metag/lowlevellock.c b/libpthread/nptl/sysdeps/unix/sysv/linux/metag/lowlevellock.c index 8c8955e05..960e02941 100644 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/metag/lowlevellock.c +++ b/libpthread/nptl/sysdeps/unix/sysv/linux/metag/lowlevellock.c @@ -24,6 +24,9 @@ #include void +#ifndef IS_IN_libpthread +weak_function +#endif __lll_lock_wait_private (int *futex) { do diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.c b/libpthread/nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.c index 3ff1b736f..35c678eb2 100644 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.c +++ b/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 -- cgit v1.2.3