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