aboutsummaryrefslogtreecommitdiff
path: root/rt/Makefile
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2013-05-31 16:16:33 +0000
committerJoseph Myers <joseph@codesourcery.com>2013-05-31 16:16:33 +0000
commitfab7ce3f5b4060bf62659e8b58529de4156b5a2f (patch)
tree478613d49200afe992092d00c61f6fb82cec07b8 /rt/Makefile
parenteca5920cd90093d8921f27bfbf7bcf54807165bb (diff)
downloadglibc-fab7ce3f5b4060bf62659e8b58529de4156b5a2f.tar
glibc-fab7ce3f5b4060bf62659e8b58529de4156b5a2f.tar.gz
glibc-fab7ce3f5b4060bf62659e8b58529de4156b5a2f.tar.bz2
glibc-fab7ce3f5b4060bf62659e8b58529de4156b5a2f.zip
Link extra-libs consistently with libc and ld.so.
Diffstat (limited to 'rt/Makefile')
-rw-r--r--rt/Makefile7
1 files changed, 1 insertions, 6 deletions
diff --git a/rt/Makefile b/rt/Makefile
index ef356d0aa8..b1392f2e0f 100644
--- a/rt/Makefile
+++ b/rt/Makefile
@@ -64,12 +64,7 @@ CFLAGS-librt-cancellation.c = -fasynchronous-unwind-tables
LDFLAGS-rt.so = -Wl,--enable-new-dtags,-z,nodelete
-# 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.
-$(objpfx)librt.so: $(common-objpfx)libc.so $(common-objpfx)libc_nonshared.a \
- $(shared-thread-library) \
- $(elfobjdir)/ld.so
+$(objpfx)librt.so: $(shared-thread-library)
ifeq (yes,$(build-shared))
$(addprefix $(objpfx),$(tests)): $(objpfx)librt.so $(shared-thread-library)