use the target's archiver to create the library

This commit is contained in:
Lephenixnoir 2019-07-29 10:17:21 -04:00
parent 0566fad0c5
commit e4cedf72a9

View file

@ -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)