summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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