This commit is contained in:
Christopher Friedt 2016-04-29 17:46:06 +00:00
commit 7b579a9476
2 changed files with 17 additions and 0 deletions

View File

@ -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

View File

@ -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 $< $@