summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-05-04 21:54:57 -0400
committerRich Felker <dalias@aerifal.cx>2012-05-04 21:54:57 -0400
commitf8e054f95197bf9c4463122fba3ebc586d4a99f6 (patch)
tree8c6ba044f77d1bb13844b08b0f285a5ddc07a2f2 /Makefile
parentdac791226a0f6fb8d19d83b63a837254f804dbac (diff)
downloadmusl-f8e054f95197bf9c4463122fba3ebc586d4a99f6.tar.gz
musl-f8e054f95197bf9c4463122fba3ebc586d4a99f6.tar.bz2
musl-f8e054f95197bf9c4463122fba3ebc586d4a99f6.tar.xz
musl-f8e054f95197bf9c4463122fba3ebc586d4a99f6.zip
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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 4f930492..1bdea61e 100644
--- a/Makefile
+++ b/Makefile
@@ -124,10 +124,12 @@ $(DESTDIR)$(libdir)/%: lib/%
$(DESTDIR)$(includedir)/%: include/%
install -D -m 644 $< $@
-$(DESTDIR)$(LDSO_PATHNAME): lib/libc.so
- install -d -m 755 $(DESTDIR)$(syslibdir) || true
+$(DESTDIR)$(LDSO_PATHNAME): $(DESTDIR)$(syslibdir)
ln -sf $(libdir)/libc.so $@ || true
+$(DESTDIR)$(syslibdir):
+ install -d -m 755 $(DESTDIR)$(syslibdir)
+
.PRECIOUS: $(CRT_LIBS:lib/%=crt/%)
.PHONY: all clean install