diff --git a/Makefile b/Makefile index d39f35d..b89734c 100644 --- a/Makefile +++ b/Makefile @@ -139,6 +139,7 @@ gcc-$(GCC_VER)/build/.mcm_installed: gcc-$(GCC_VER)/build/.mcm_built musl/.mcm_cloned: test -d musl || git clone -b $(MUSL_TAG) git://git.musl-libc.org/musl musl + cat patches/musl/* | ( cd musl && patch -p1 ) touch $@ musl/.mcm_configured: musl/.mcm_cloned gcc-$(GCC_VER)/build0/.mcm_built diff --git a/patches/musl/00-broken-mac-os-x-ar.diff b/patches/musl/00-broken-mac-os-x-ar.diff new file mode 100644 index 0000000..f2d08f0 --- /dev/null +++ b/patches/musl/00-broken-mac-os-x-ar.diff @@ -0,0 +1,16 @@ +diff --git a/Makefile b/Makefile +index ec54880..b048cbd 100644 +--- a/Makefile ++++ b/Makefile +@@ -170,7 +170,11 @@ lib/libc.a: $(AOBJS) + + $(EMPTY_LIBS): + rm -f $@ ++ifeq ($(shell uname),Darwin) ++ touch $@ ++else + $(AR) rc $@ ++endif + + lib/%.o: obj/crt/$(ARCH)/%.o + cp $< $@