musl-cross-make/patches/musl/00-broken-mac-os-x-ar.patch

18 lines
304 B
Diff

diff --git a/Makefile b/Makefile
index ec54880..b048cbd 100644
--- a/Makefile
+++ b/Makefile
@@ -170,7 +170,12 @@ lib/libc.a: $(AOBJS)
$(EMPTY_LIBS):
rm -f $@
+ifeq ($(shell uname),Darwin)
+ touch .empty.o
+ $(AR) rc $@ .empty.o
+else
$(AR) rc $@
+endif
lib/%.o: obj/crt/$(ARCH)/%.o
cp $< $@