summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2023-06-12 18:33:19 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-06-15 09:53:38 +0100
commit155ee00592d61537f1686be39fbd297c68b090a0 (patch)
tree258dd7a0d68316bae21e6bfd272716329ee700d4 /meta/recipes-devtools
parentabee4e69e114256d661eca816dab0565ac781e6a (diff)
downloadpoky-155ee00592d61537f1686be39fbd297c68b090a0.tar.gz
libstd-rs, rust: use bfd linker instead of gold
* it started to fail only after the upgrade to 1.70.0 (From OE-Core rev: aa037b4138459521a3554c5e91cb4a6cd0c37bdd) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/rust/libstd-rs_1.70.0.bb5
-rw-r--r--meta/recipes-devtools/rust/rust_1.70.0.bb5
2 files changed, 10 insertions, 0 deletions
diff --git a/meta/recipes-devtools/rust/libstd-rs_1.70.0.bb b/meta/recipes-devtools/rust/libstd-rs_1.70.0.bb
index f4e5abc0cc..f23db79733 100644
--- a/meta/recipes-devtools/rust/libstd-rs_1.70.0.bb
+++ b/meta/recipes-devtools/rust/libstd-rs_1.70.0.bb
@@ -45,3 +45,8 @@ do_install () {
45} 45}
46 46
47BBCLASSEXTEND = "nativesdk" 47BBCLASSEXTEND = "nativesdk"
48
49# Since 1.70.0 upgrade this fails to build with gold:
50# http://errors.yoctoproject.org/Errors/Details/708194/
51# ld: error: version script assignment of to symbol __rust_alloc_error_handler_should_panic failed: symbol not defined
52LDFLAGS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd', '', d)}"
diff --git a/meta/recipes-devtools/rust/rust_1.70.0.bb b/meta/recipes-devtools/rust/rust_1.70.0.bb
index 83f9bec68a..8669291d08 100644
--- a/meta/recipes-devtools/rust/rust_1.70.0.bb
+++ b/meta/recipes-devtools/rust/rust_1.70.0.bb
@@ -350,3 +350,8 @@ RUSTLIB_DEP:class-nativesdk = ""
350INSANE_SKIP:${PN} = "staticdev" 350INSANE_SKIP:${PN} = "staticdev"
351 351
352BBCLASSEXTEND = "native nativesdk" 352BBCLASSEXTEND = "native nativesdk"
353
354# Since 1.70.0 upgrade this fails to build with gold:
355# http://errors.yoctoproject.org/Errors/Details/708196/
356# ld: error: version script assignment of to symbol __rust_alloc_error_handler_should_panic failed: symbol not defined
357LDFLAGS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd', '', d)}"