]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix the symbolic link of multilib dirs
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Wed, 8 Jun 2022 13:09:28 +0000 (14:09 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Thu, 27 Oct 2022 13:46:47 +0000 (14:46 +0100)
If dir contains several / then "ln -s . $dir" does not link it to the
current directory. Use the existing rellns.sh script to compute the
correct relative path to .

Makerules

index d1e139d03c1c448e14aee35af3e54ee7abe2180c..591893c6a3df171a1a305723ee4c5fd4279df3e6 100644 (file)
--- a/Makerules
+++ b/Makerules
@@ -1002,7 +1002,7 @@ endef
 define make-link-multidir
 $(patsubst %/,cd %,$(objpfx)); \
   $(addprefix $(abspath $(..)scripts/mkinstalldirs) ,$(dir $(multidir))); \
-  $(LN_S) . $(multidir) 2> /dev/null; \
+  $(SHELL) $(abspath $(..)scripts/rellns-sh) . $(multidir) 2> /dev/null; \
   test -L $(multidir)
 endef
 else