From 714f543f4fa8fb3911449b6ce1517481359e0cff Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Sat, 23 Jun 2012 14:21:17 -0700
Subject: [PATCH] nptl/arm: Move aeabi_read_tp to uclibc_nonshared.a

Otherwise it creates wrong references from shared libs

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Upstream-Status: Pending
---
 libc/sysdeps/linux/arm/Makefile.arch |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libc/sysdeps/linux/arm/Makefile.arch b/libc/sysdeps/linux/arm/Makefile.arch
index 5fc3e54..8285b9b 100644
--- a/libc/sysdeps/linux/arm/Makefile.arch
+++ b/libc/sysdeps/linux/arm/Makefile.arch
@@ -13,7 +13,9 @@ SSRC := \
 	vfork.S clone.S
 
 ifeq ($(UCLIBC_HAS_THREADS_NATIVE),y)
-SSRC += libc-aeabi_read_tp.S libc-thumb_atomics.S
+SSRC += libc-thumb_atomics.S
+libc-nonshared-y += $(ARCH_OUT)/libc-aeabi_read_tp.os
+libc-static-y += $(ARCH_OUT)/libc-aeabi_read_tp.o
 endif
 
 ifeq ($(UCLIBC_HAS_ADVANCED_REALTIME),y)
-- 
1.7.9.5

