Message ID | 20231004122721.54525-3-bjorn@kernel.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 72fae6319962fca2ecd8bb4f4e8dbdda7fe9af6f |
Delegated to: | BPF |
Headers | show |
Series | selftest/bpf, riscv: Improved cross-building support | expand |
diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests/bpf/Makefile index a9cbb85fa180..098e32c684d5 100644 --- a/tools/testing/selftests/bpf/Makefile +++ b/tools/testing/selftests/bpf/Makefile @@ -188,7 +188,7 @@ $(OUTPUT)/%:%.c $(Q)$(LINK.c) $^ $(LDLIBS) -o $@ # LLVM's ld.lld doesn't support all the architectures, so use it only on x86 -ifeq ($(SRCARCH),x86) +ifeq ($(SRCARCH),$(filter $(SRCARCH),x86 riscv)) LLD := lld else LLD := ld