Fix some places to use $(LN_S) makefile variable.
authorRoland McGrath <roland@hack.frob.com>
Wed, 8 Jul 2015 21:21:41 +0000 (14:21 -0700)
committerRoland McGrath <roland@hack.frob.com>
Wed, 8 Jul 2015 21:21:41 +0000 (14:21 -0700)
ChangeLog
Makerules
elf/Makefile

index c841daf..90d5fa0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 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.
 
index 372b3c0..f9ca3f5 100644 (file)
--- a/Makerules
+++ b/Makerules
@@ -1132,7 +1132,8 @@ endif
 
 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
 
index bd0f24d..e439527 100644 (file)
@@ -377,8 +377,7 @@ ifneq (ld.so,$(rtld-installed-name))
 # 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