From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7814) id 5C4DD3857C7B; Fri, 27 Aug 2021 23:22:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5C4DD3857C7B Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Fangrui Song To: glibc-cvs@sourceware.org Subject: [glibc/maskray/grte] Use LN_S in more places to forestall hard link creation X-Act-Checkin: glibc X-Git-Author: Stan Shebs X-Git-Refname: refs/heads/maskray/grte X-Git-Oldrev: 6302c3ccf839007f8632964e99a3e5d038a5e9e2 X-Git-Newrev: 654fbaf1b77c7ae93325d6c0e651a9f0ccff465d Message-Id: <20210827232235.5C4DD3857C7B@sourceware.org> Date: Fri, 27 Aug 2021 23:22:35 +0000 (GMT) X-BeenThere: glibc-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2021 23:22:35 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=654fbaf1b77c7ae93325d6c0e651a9f0ccff465d commit 654fbaf1b77c7ae93325d6c0e651a9f0ccff465d Author: Stan Shebs Date: Wed Feb 14 09:44:15 2018 -0800 Use LN_S in more places to forestall hard link creation Diff: --- 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) $< $@