From: Martin Jansa Date: Mon, 12 Jun 2023 16:33:19 +0000 (+0200) Subject: libstd-rs, rust: use bfd linker instead of gold X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~666 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=aa037b4138459521a3554c5e91cb4a6cd0c37bdd;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git libstd-rs, rust: use bfd linker instead of gold * it started to fail only after the upgrade to 1.70.0 Signed-off-by: Martin Jansa Signed-off-by: Alexandre Belloni --- 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 f4e5abc0cc4..f23db797333 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 () { } 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)}" diff --git a/meta/recipes-devtools/rust/rust_1.70.0.bb b/meta/recipes-devtools/rust/rust_1.70.0.bb index 83f9bec68a4..8669291d084 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 = "" 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)}"