public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH] rust: Fix cross compilation error for rust-testuite
@ 2022-09-04  7:08 pgowda.cve
  2022-09-04 21:41 ` Richard Purdie
  0 siblings, 1 reply; 2+ messages in thread
From: pgowda.cve @ 2022-09-04  7:08 UTC (permalink / raw)
  To: openembedded-core; +Cc: richard.purdie, Randy.MacLeod, vinay.m.engg, pgowda

From: pgowda <pgowda.cve@gmail.com>

Fixes the following error while building the rust-testuite
error: linker cc not found

Signed-off-by: pgowda <pgowda.cve@gmail.com>
---
 meta/recipes-devtools/rust/rust.inc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/recipes-devtools/rust/rust.inc b/meta/recipes-devtools/rust/rust.inc
index 284347dedc..a3d93eca4a 100644
--- a/meta/recipes-devtools/rust/rust.inc
+++ b/meta/recipes-devtools/rust/rust.inc
@@ -116,6 +116,9 @@ python do_configure() {
     # Whether or not to optimize the compiler and standard library
     config.set("rust", "optimize", e(True))
 
+    # Override default linker cc.
+    config.set("rust", "default-linker", e(d.expand("${RUST_BUILD_CCLD}")))
+
     # [build]
     config.add_section("build")
     config.set("build", "submodules", e(False))
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-09-04 21:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-04  7:08 [PATCH] rust: Fix cross compilation error for rust-testuite pgowda.cve
2022-09-04 21:41 ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox