toolchain/musl: fix build issues on mac os x
[openwrt/svn-archive/archive.git] / toolchain / musl / patches-0.9.8 / 005-install_portability.patch
1 --- a/Makefile
2 +++ b/Makefile
3 @@ -116,16 +116,20 @@ tools/musl-gcc: config.mak
4 chmod +x $@
5
6 $(DESTDIR)$(bindir)/%: tools/%
7 - install -D $< $@
8 + mkdir -p $(dir $@)
9 + install $< $@
10
11 $(DESTDIR)$(libdir)/%.so: lib/%.so
12 - install -D -m 755 $< $@
13 + mkdir -p $(dir $@)
14 + install -m 755 $< $@
15
16 $(DESTDIR)$(libdir)/%: lib/%
17 - install -D -m 644 $< $@
18 + mkdir -p $(dir $@)
19 + install -m 644 $< $@
20
21 $(DESTDIR)$(includedir)/%: include/%
22 - install -D -m 644 $< $@
23 + mkdir -p $(dir $@)
24 + install -m 644 $< $@
25
26 $(DESTDIR)$(LDSO_PATHNAME): $(DESTDIR)$(syslibdir)
27 ln -sf $(libdir)/libc.so $@ || true