This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH v3 02/19] Allow make-link-multidir to make subdirectories


The RISC-V Linux ABI doesn't define any libraries that go directly in
lib, instead they go into lib/ilp32 or lib/lp64.  This casuse
make-link-multidir to fail when attempting to make library directories
when building a static libc on multilib RISC-V systems.

This patch adds '-p' to mkdir so it will make subdirectories.  I've
added "." as an argument so mkdir won't error out if no directories are
provided -- I think "mkdir -p ." should always do nothing.
---
 Makerules | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Makerules b/Makerules
index 522de25cfddb..ec0f93e0b493 100644
--- a/Makerules
+++ b/Makerules
@@ -1081,6 +1081,7 @@ mv -f $@.new $@
 endef
 define make-link-multidir
 $(patsubst %/,cd %,$(objpfx)); \
+  mkdir -p -- . $(dir $(multidir)); \
   $(LN_S) . $(multidir) 2> /dev/null; \
   test -L $(multidir)
 endef
-- 
2.13.6


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]