X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=toolchain%2Fmusl%2Fpatches-0.9.11%2F000-install_portability.patch;fp=toolchain%2Fmusl%2Fpatches-0.9.11%2F000-install_portability.patch;h=43c43519d9f5a4a60375a8c90bb8376c67e31a65;hb=7ac10b4555c90fedaee0fa2cc7d7dc3fa5d11b88;hp=0000000000000000000000000000000000000000;hpb=fb5527b8db401f7d6db37a66b145db1e0d971009;p=openwrt-github%2F.git diff --git a/toolchain/musl/patches-0.9.11/000-install_portability.patch b/toolchain/musl/patches-0.9.11/000-install_portability.patch new file mode 100644 index 0000000000..43c43519d9 --- /dev/null +++ b/toolchain/musl/patches-0.9.11/000-install_portability.patch @@ -0,0 +1,27 @@ +--- a/Makefile ++++ b/Makefile +@@ -116,16 +116,20 @@ + chmod +x $@ + + $(DESTDIR)$(bindir)/%: tools/% +- install -D $< $@ ++ mkdir -p $(dir $@) ++ install $< $@ + + $(DESTDIR)$(libdir)/%.so: lib/%.so +- install -D -m 755 $< $@ ++ mkdir -p $(dir $@) ++ install -m 755 $< $@ + + $(DESTDIR)$(libdir)/%: lib/% +- install -D -m 644 $< $@ ++ mkdir -p $(dir $@) ++ install -m 644 $< $@ + + $(DESTDIR)$(includedir)/%: include/% +- install -D -m 644 $< $@ ++ mkdir -p $(dir $@) ++ install -m 644 $< $@ + + $(DESTDIR)$(LDSO_PATHNAME): $(DESTDIR)$(syslibdir) + ln -sf $(libdir)/libc.so $@ || true