]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Use LN_S in more places to forestall hard link creation
authorStan Shebs <stanshebs@google.com>
Wed, 14 Feb 2018 17:44:15 +0000 (09:44 -0800)
committerStan Shebs <stanshebs@google.com>
Wed, 14 Feb 2018 17:44:15 +0000 (09:44 -0800)
Makerules
nptl/Makefile
sysdeps/x86_64/Makefile

index 76894886595bf8eb64a5efb75cb1439ad54e79e2..652879038cc9f563431facccd90a2ea50ef7c89c 100644 (file)
--- a/Makerules
+++ b/Makerules
@@ -737,7 +737,7 @@ endif
 ifeq (,$(filter sunrpc,$(subdirs)))
 $(common-objpfx)linkobj/libc_pic.a: $(common-objpfx)libc_pic.a
        $(make-target-directory)
-       ln -f $< $@
+       $(LN_S) -f $< $@
 else
 $(common-objpfx)linkobj/libc_pic.a: $(common-objpfx)libc_pic.a \
                                    $(common-objpfx)sunrpc/librpc_compat_pic.a
@@ -1095,7 +1095,7 @@ mv -f $@.new $@
 endef
 define make-link-multidir
 $(make-target-directory)
-ln -f $(objpfx)/$(@F) $@
+$(LN_S) -f $(objpfx)/$(@F) $@
 endef
 endif
 
index a2b3a005c64cfe5962e0ac91cb3ddc447ae3db88..40680e854e084eefa07ccc49c8ed5bb84b02e593 100644 (file)
@@ -678,14 +678,14 @@ $(objpfx)tst-cleanup0-cmp.out: tst-cleanup0.expect $(objpfx)tst-cleanup0.out
        $(evaluate-test)
 
 $(objpfx)crti.o: $(objpfx)pt-crti.o
-       ln -f $< $@
+       $(LN_S) -f $< $@
 
 ifneq ($(multidir),.)
 $(objpfx)$(multidir)/crti.o: $(objpfx)crti.o $(objpfx)$(multidir)/
-       ln -f $< $@
+       $(LN_S) -f $< $@
 
 $(objpfx)$(multidir)/crtn.o: $(objpfx)crtn.o $(objpfx)$(multidir)/
-       ln -f $< $@
+       $(LN_S) -f $< $@
 endif
 
 generated += libpthread_nonshared.a \
index 54e2ac71519eade6064b6e30a0a318c332921286..04f04cc5aa61d80bd501c588a1d2bddb8651d1ea 100644 (file)
@@ -163,7 +163,7 @@ endif
 $(objpfx)x86_64/tst-x86_64mod-1.os: $(objpfx)tst-x86_64mod-1.os
        $(make-target-directory)
        rm -f $@
-       ln $< $@
+       $(LN_S) $< $@
 
 do-tests-clean common-mostlyclean: tst-x86_64-1-clean
 
@@ -174,4 +174,4 @@ tst-x86_64-1-clean:
 $(objpfx)x86_64/tst-platformmod-2.os: $(objpfx)tst-platformmod-2.os
        $(make-target-directory)
        rm -f $@
-       ln $< $@
+       $(LN_S) $< $@