2015-07-08 Roland McGrath <roland@hack.frob.com>
+ * Makerules (do-install-so): Use $(LN_S) rather than explicit 'ln -s'.
+ * elf/Makefile ($(objpfx)$(rtld-installed-name)): Use $(make-link)
+ rather than explicit 'ln -s'.
+
* resolv/rpc/netdb.h: New file.
* resolv/Makefile [sunrpc not in $(subdirs)] (headers): Add it.
define do-install-so
$(do-install-program)
-$(patsubst %,ln -s -f $(@F) $(@D)/$(patsubst %$*.so,%,$(<F))$(libprefix)$*.so,\
+$(patsubst %,$(LN_S) -f $(@F) \
+ $(@D)/$(patsubst %$*.so,%,$(<F))$(libprefix)$*.so,\
$(filter-out %.so,$@))
endef
# Make sure ld.so.1 exists in the build directory so we can link
# against it.
$(objpfx)$(rtld-installed-name): $(objpfx)ld.so
- rm -f $@
- ln -s $(<F) $@
+ $(make-link)
generated += $(rtld-installed-name)
endif