]> git.proxmox.com Git - wasi-libc.git/commitdiff
Enable overriding 'ar'
authorPetr Penzin <petr.penzin@intel.com>
Wed, 7 Nov 2018 17:23:37 +0000 (09:23 -0800)
committerPetr Penzin <petr.penzin@intel.com>
Wed, 7 Nov 2018 17:39:33 +0000 (09:39 -0800)
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

index 8ae722f65803ca2425693ee7d3e685ea81618ea5..74482056ead8e6e90596941308ed3f464e000067 100644 (file)
--- 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