Use the AR variable in Makefile

For cross-compiling
This commit is contained in:
Artturin 2024-06-24 21:00:08 +03:00
parent 411df4e53f
commit 91e67ab2bd

View File

@ -180,7 +180,7 @@ bcachefs: $(BCACHEFS_DEPS) $(RUST_SRCS)
libbcachefs.a: $(filter-out ./tests/%.o, $(OBJS))
@echo " [AR] $@"
$(Q)ar -rc $@ $+
$(Q)$(AR) -rc $@ $+
tests/test_helper: $(filter ./tests/%.o, $(OBJS))
@echo " [LD] $@"