public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/maskray/grte] Use LN_S in more places to forestall hard link creation
@ 2021-08-27 23:22 Fangrui Song
  0 siblings, 0 replies; only message in thread
From: Fangrui Song @ 2021-08-27 23:22 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=654fbaf1b77c7ae93325d6c0e651a9f0ccff465d

commit 654fbaf1b77c7ae93325d6c0e651a9f0ccff465d
Author: Stan Shebs <stanshebs@google.com>
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) $< $@


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-27 23:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-27 23:22 [glibc/maskray/grte] Use LN_S in more places to forestall hard link creation Fangrui Song

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).