[PATCH v3 02/19] Allow make-link-multidir to make subdirectories
Palmer Dabbelt
palmer@dabbelt.com
Wed Dec 27 06:05:00 GMT 2017
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
More information about the Libc-alpha
mailing list