diff --git a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb
index 96b837fb20..2a0368d873 100644
--- a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb
+++ b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb
@@ -8,6 +8,8 @@ DEPENDS = "rsync-native llvm-native libcap"
 # net: libbpf (elfutils, zlib), YNL code generation (python3-pyyaml-native,
 # python3-jsonschema-native), reuseport_bpf_numa (numactl) and tcp_mmap (openssl)
 DEPENDS += "elfutils numactl openssl python3-jsonschema-native python3-pyyaml-native zlib"
+# net and net/lib build their BPF objects with clang, whatever the toolchain
+DEPENDS += "clang-native"
 
 S = "${UNPACKDIR}"
 
