]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
libstd-rs, rust: use bfd linker instead of gold
authorMartin Jansa <Martin.Jansa@gmail.com>
Mon, 12 Jun 2023 16:33:19 +0000 (18:33 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 15 Jun 2023 08:53:34 +0000 (09:53 +0100)
* it started to fail only after the upgrade to 1.70.0

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/recipes-devtools/rust/libstd-rs_1.70.0.bb
meta/recipes-devtools/rust/rust_1.70.0.bb

index f4e5abc0cc43c7e71f7191b37868b60503333ed4..f23db797333e4870da660e851d785441b3ee77ea 100644 (file)
@@ -45,3 +45,8 @@ do_install () {
 }
 
 BBCLASSEXTEND = "nativesdk"
+
+# Since 1.70.0 upgrade this fails to build with gold:
+# http://errors.yoctoproject.org/Errors/Details/708194/
+# ld: error: version script assignment of  to symbol __rust_alloc_error_handler_should_panic failed: symbol not defined
+LDFLAGS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd', '', d)}"
index 83f9bec68a4f4a1986f391e2f069b202b7a6222f..8669291d084c9c9750458ae409167f7d2b90d4c3 100644 (file)
@@ -350,3 +350,8 @@ RUSTLIB_DEP:class-nativesdk = ""
 INSANE_SKIP:${PN} = "staticdev"
 
 BBCLASSEXTEND = "native nativesdk"
+
+# Since 1.70.0 upgrade this fails to build with gold:
+# http://errors.yoctoproject.org/Errors/Details/708196/
+# ld: error: version script assignment of  to symbol __rust_alloc_error_handler_should_panic failed: symbol not defined
+LDFLAGS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd', '', d)}"