From 654fbaf1b77c7ae93325d6c0e651a9f0ccff465d Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Wed, 14 Feb 2018 09:44:15 -0800 Subject: [PATCH] Use LN_S in more places to forestall hard link creation --- Makerules | 4 ++-- nptl/Makefile | 6 +++--- sysdeps/x86_64/Makefile | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Makerules b/Makerules index 7689488659..652879038c 100644 --- 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 diff --git a/nptl/Makefile b/nptl/Makefile index a2b3a005c6..40680e854e 100644 --- a/nptl/Makefile +++ b/nptl/Makefile @@ -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 \ diff --git a/sysdeps/x86_64/Makefile b/sysdeps/x86_64/Makefile index 54e2ac7151..04f04cc5aa 100644 --- a/sysdeps/x86_64/Makefile +++ b/sysdeps/x86_64/Makefile @@ -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) $< $@