diff --git a/package/rust-bindgen/rust-bindgen.mk b/package/rust-bindgen/rust-bindgen.mk index 349d4c3670..8c02db557f 100644 --- a/package/rust-bindgen/rust-bindgen.mk +++ b/package/rust-bindgen/rust-bindgen.mk @@ -9,6 +9,11 @@ RUST_BINDGEN_SITE = $(call github,rust-lang,rust-bindgen,v$(RUST_BINDGEN_VERSION RUST_BINDGEN_LICENSE = BSD-3-clause RUST_BINDGEN_LICENSE_FILES = LICENSE +# This is actually a runtime dependency (bindgen loads libclang at +# runtime), but as it's a host package, we have no other option but to +# handle it as a build dependency. +HOST_RUST_BINDGEN_DEPENDENCIES = host-clang + # The Cargo.toml at the root directory is a "virtual manifest". # Since we only want to build and install bindgen use the Cargo.toml # from the bindgen-cli subdirectory.