diff --git a/package/kernel/bpf-headers/Makefile b/package/kernel/bpf-headers/Makefile index 5efd2e1cf0fb74..e75da738e6862e 100644 --- a/package/kernel/bpf-headers/Makefile +++ b/package/kernel/bpf-headers/Makefile @@ -53,7 +53,9 @@ KERNEL_MAKE := \ $(MAKE) -C $(PKG_BUILD_DIR) \ ARCH=$(BPF_KARCH) \ CROSS_COMPILE=$(BPF_ARCH)-linux- \ - LLVM=1 CC="$(CLANG)" LD="$(TARGET_CROSS)ld" \ + LLVM=1 KBUILD_SYM32=n \ + CC="$(CLANG) --target=$(BPF_TARGET)" \ + LD="$(TARGET_CROSS)ld" \ HOSTCC="$(HOSTCC)" \ HOSTCXX="$(HOSTCXX)" \ KBUILD_HOSTLDLIBS="-L$(STAGING_DIR_HOST)/lib" \