mirror of git://git.musl-libc.org/musl
improve the build rules for installing /lib/ld-musl-$ARCH.so
these new rules should avoid spurious error messages when the directory (usually /lib) and the dynamic linker symlink already exist, and minimize the spam when they can't be created.
This commit is contained in:
parent
dac791226a
commit
f8e054f951
6
Makefile
6
Makefile
|
@ -124,10 +124,12 @@ $(DESTDIR)$(libdir)/%: lib/%
|
||||||
$(DESTDIR)$(includedir)/%: include/%
|
$(DESTDIR)$(includedir)/%: include/%
|
||||||
install -D -m 644 $< $@
|
install -D -m 644 $< $@
|
||||||
|
|
||||||
$(DESTDIR)$(LDSO_PATHNAME): lib/libc.so
|
$(DESTDIR)$(LDSO_PATHNAME): $(DESTDIR)$(syslibdir)
|
||||||
install -d -m 755 $(DESTDIR)$(syslibdir) || true
|
|
||||||
ln -sf $(libdir)/libc.so $@ || true
|
ln -sf $(libdir)/libc.so $@ || true
|
||||||
|
|
||||||
|
$(DESTDIR)$(syslibdir):
|
||||||
|
install -d -m 755 $(DESTDIR)$(syslibdir)
|
||||||
|
|
||||||
.PRECIOUS: $(CRT_LIBS:lib/%=crt/%)
|
.PRECIOUS: $(CRT_LIBS:lib/%=crt/%)
|
||||||
|
|
||||||
.PHONY: all clean install
|
.PHONY: all clean install
|
||||||
|
|
Loading…
Reference in New Issue