about summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
Diffstat (limited to 'elf')
-rw-r--r--elf/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/elf/Makefile b/elf/Makefile
index c973a0f461..6569a7e573 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -43,9 +43,14 @@ generated	= librtld.so dl-allobjs.so
 install-others	= $(slibdir)/$(rtld-installed-name)
 install-bin	= ldd
 
+# Make sure this is built in the `make lib' pass so it can be used
+# to run programs during the `make others' pass.
+subdir_lib: $(objpfx)ld.so
+
 ifneq (,$(filter linux%,$(config-os)))
 extra-objs	+= linux-compat.so
 install-others	+= $(slibdir)/ld-linux.so.1
+subdir_lib: $(objpfx)ld-linux.so.1
 endif
 endif