From e4cedf72a9c37fcc7bbc30ea3904947dfa8b67fd Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Mon, 29 Jul 2019 10:17:21 -0400 Subject: [PATCH] use the target's archiver to create the library --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1ea5803..1cd0af7 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ obj := $(src:%=build/%.o) all: $(lib) $(lib): $(obj) - ar rcs $@ $^ + $(target)-ar rcs $@ $^ build/%.c.o: %.c | build/ $(target)-gcc -c $< -o $@ $(cflags)