From: Sundeep KOKKONDA Date: Wed, 8 Mar 2023 17:29:09 +0000 (+0530) Subject: rust: added missing runtime dependencies to run rust on target X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~1483 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb781f452299cfa6ec7fffd215b0af3149178f32;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git rust: added missing runtime dependencies to run rust on target [YOCTO #14975] rust files are not linking on target due to missing dependencies and observed below error. error: linker `x86_64-poky-linux-gcc` not found Added the required dependencies to run rust on target machine. Signed-off-by: Sundeep KOKKONDA Signed-off-by: Alexandre Belloni --- diff --git a/meta/recipes-devtools/rust/rust_1.67.1.bb b/meta/recipes-devtools/rust/rust_1.67.1.bb index 2118faec8fc..f4c6d9511db 100644 --- a/meta/recipes-devtools/rust/rust_1.67.1.bb +++ b/meta/recipes-devtools/rust/rust_1.67.1.bb @@ -13,6 +13,8 @@ DEPENDS:append:class-nativesdk = " nativesdk-rust-llvm" DEPENDS += "rust-llvm (=${PV})" +RDEPENDS:${PN}:append:class-target = " gcc g++ binutils" + # Otherwise we'll depend on what we provide INHIBIT_DEFAULT_RUST_DEPS:class-native = "1" # We don't need to depend on gcc-native because yocto assumes it exists