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/metag/lowlevellock.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libpthread/nptl/sysdeps/unix/sysv/linux/metag/lowlevellock.c') 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 -- cgit v1.2.3