From 7ef30385ab7c580bc5679b8a72310ccf5b5b9cbf Mon Sep 17 00:00:00 2001 From: Petr Penzin Date: Wed, 7 Nov 2018 09:23:37 -0800 Subject: [PATCH] Enable overriding 'ar' Make has a stanard variable for 'ar', it is better to use it to enable overriding the standard name in non-standard builds (i.e. MinGW). --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8ae722f6..74482056 100644 --- a/Makefile +++ b/Makefile @@ -36,5 +36,5 @@ $(SYSROOT): $(RM) *.o "$(WASM_CC)" $(WASM_CFLAGS) $(WASM_TARGET_FLAGS) --sysroot="$(SYSROOT)" -c $(BASICS_LIBC_SOURCES) mkdir -p "$(SYSROOT)/lib" - ar crs "$(SYSROOT)/lib/libc.a" *.o + $(AR) crs "$(SYSROOT)/lib/libc.a" *.o $(RM) *.o