summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2011-11-09 18:42:51 +0100
committerPixel <pixel@nobis-crew.org>2011-11-09 18:42:51 +0100
commit934956b50f91ab11486001661e1a4a8c2126f788 (patch)
tree9db884fd9d6573e045baf9d74a8d7af07a1b6ebd
parentee83336050553a2dbd64c27b8e384139c7ccec9a (diff)
Darwin's ar is retarded. Workarounding.
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a7aadd7..6fd9f18 100644
--- a/Makefile
+++ b/Makefile
@@ -194,6 +194,11 @@ LuaJIT:
$(MAKE) -C LuaJIT CC="$(CC) $(ARCH_FLAGS)" BUILDMODE=static
libBalau.a: LuaJIT $(BALAU_OBJECTS)
+ifeq ($(SYSTEM),Darwin)
+ifneq ($(CROSSCOMPILE),true)
+ rm -f libBalau.a
+endif
+endif
$(AR) libBalau.a $(BALAU_OBJECTS)
%.$(BINEXT) : %.o $(LIB)