]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
rust: added missing runtime dependencies to run rust on target
authorSundeep KOKKONDA <sundeep.kokkonda@gmail.com>
Wed, 8 Mar 2023 17:29:09 +0000 (22:59 +0530)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 11 Mar 2023 00:08:38 +0000 (00:08 +0000)
[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 <sundeep.kokkonda@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/recipes-devtools/rust/rust_1.67.1.bb

index 2118faec8fcb87468b0c80f01988db62ceb1eabc..f4c6d9511dbc2a26e1540ff76646ba9252a4d168 100644 (file)
@@ -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