This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[ARM] Add libc_nonshared.a dependency


Hi,

currently the glibc build breaks for ARM with TLS enabled because of a missing
dependency.

The attached patch adds this dependency in an ARM makefile, as suggested by
Ulrich here: http://sources.redhat.com/ml/libc-alpha/2011-05/msg00015.html.

I tested the patch on ARM qemu (arm-none-linux-gnueabi) with host i686-pc-linux-gnu.

Thanks,
- Tom
2012-01-05  Nathan Sidwell  <nathan@codesourcery.com>
	    Tom de Vries  <tom@codesourcery.com>

	* sysdeps/arm/Makefile (libmemusage.so): Add libc_nonshared.a
	dependency.

diff --git a/sysdeps/arm/Makefile b/sysdeps/arm/Makefile
index 5651161..1a88430 100644
--- a/sysdeps/arm/Makefile
+++ b/sysdeps/arm/Makefile
@@ -7,3 +7,8 @@ endif
 ifeq ($(subdir),csu)
 gen-as-const-headers += tlsdesc.sym
 endif
+
+# to pull in __aeabi_read_tp, needed for tls
+ifeq ($(subdir),malloc)
+$(objpfx)libmemusage.so: $(common-objpfx)libc_nonshared.a
+endif

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]