소스 검색

NPTL/ARC: fix __lll_lock_wait_private redefinition for static links

Commit 2d9740a65a "uclibc: nptl: fix __lll_lock_wait_private multiple definition"
did a sweeping change which did for all in tree arches at that time (ARC
wasn't)

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Vineet Gupta 8 년 전
부모
커밋
da25b583ec
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      libpthread/nptl/sysdeps/unix/sysv/linux/arc/lowlevellock.c

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

@@ -24,8 +24,10 @@
 #include <tls.h>
 #include <tcb-offsets.h>
 
-
 void
+#ifndef IS_IN_libpthread
+weak_function
+#endif
 __lll_lock_wait_private (int *futex)
 {
   if (*futex == 2)