about summary refs log tree commit diff
path: root/elf/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'elf/Makefile')
-rw-r--r--elf/Makefile9
1 files changed, 2 insertions, 7 deletions
diff --git a/elf/Makefile b/elf/Makefile
index 6290132661..7dc4f7cbca 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -174,17 +174,12 @@ CPPFLAGS-dl-load.c = -I$(objpfx).
 ifeq (yes,$(build-shared))
 $(inst_slibdir)/$(rtld-version-installed-name): $(objpfx)ld.so $(+force)
 	$(make-target-directory)
-	$(INSTALL_PROGRAM) $< $@.new
+	$(do-install-program)
 
 $(inst_slibdir)/$(rtld-installed-name): \
   $(inst_slibdir)/$(rtld-version-installed-name) \
   $(inst_slibdir)/libc-$(version).so
-	rm -f $@ $<
-	$(symbolic-link-prog) $<.new $@
-	ln $<.new $<
-	rm -f $@
-	$(symbolic-link-prog) $(<F) $@
-	rm -f $<.new
+	$(make-shlib-link)
 
 # Special target called by parent to install just the dynamic linker.
 .PHONY: ldso_install