Use LN_S in more places to forestall hard link creation

This commit is contained in:
Stan Shebs 2018-02-14 09:44:15 -08:00
parent 6302c3ccf8
commit 654fbaf1b7
3 changed files with 7 additions and 7 deletions

View File

@ -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

View 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 \

View 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) $< $@