From fab7ce3f5b4060bf62659e8b58529de4156b5a2f Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 31 May 2013 16:16:33 +0000 Subject: Link extra-libs consistently with libc and ld.so. --- nptl/Makefile | 8 -------- 1 file changed, 8 deletions(-) (limited to 'nptl/Makefile') diff --git a/nptl/Makefile b/nptl/Makefile index 6af4b37..7fa991b 100644 --- a/nptl/Makefile +++ b/nptl/Makefile @@ -507,14 +507,6 @@ $(objpfx)libpthread.so: $(addprefix $(objpfx),$(crti-objs) $(crtn-objs)) $(objpfx)libpthread.so: +preinit += $(addprefix $(objpfx),$(crti-objs)) $(objpfx)libpthread.so: +postinit += $(addprefix $(objpfx),$(crtn-objs)) -# Depend on libc.so so a DT_NEEDED is generated in the shared objects. -# This ensures they will load libc.so for needed symbols if loaded by -# a statically-linked program that hasn't already loaded it. -# Depend on ld.so too to get proper versions of ld.so symbols. -$(objpfx)libpthread.so: $(common-objpfx)libc.so \ - $(common-objpfx)libc_nonshared.a \ - $(elfobjdir)/ld.so - # Make sure we link with the thread library. ifeq ($(build-shared),yes) $(addprefix $(objpfx), \ -- cgit v1.1