diff mbox series

[meta-lts-mixins,scarthgap/rust,08/29] recipes: Drop ld-is-gold support

Message ID e94c07552a43158689f5097e29647d32b5096974.1744061149.git.scott.murray@konsulko.com
State New
Headers show
Series Update to Rust 1.85.1 | expand

Commit Message

Scott Murray April 7, 2025, 9:29 p.m. UTC
From: Richard Purdie <richard.purdie@linuxfoundation.org>

Gold hasn't seen development in some time and is being dropped from binutils
releases. Drop the small number of special cases for it we were carrying.

This patch also turns off gold in the binutils recipe.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(adapted from oe-core commit a4addb9ab63011e7c604fc5daff95559e7d214e7)
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
---
 recipes-devtools/rust/libstd-rs_1.81.0.bb | 5 -----
 recipes-devtools/rust/rust_1.81.0.bb      | 5 -----
 2 files changed, 10 deletions(-)
diff mbox series

Patch

diff --git a/recipes-devtools/rust/libstd-rs_1.81.0.bb b/recipes-devtools/rust/libstd-rs_1.81.0.bb
index fe016e7..06a2889 100644
--- a/recipes-devtools/rust/libstd-rs_1.81.0.bb
+++ b/recipes-devtools/rust/libstd-rs_1.81.0.bb
@@ -48,8 +48,3 @@  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/recipes-devtools/rust/rust_1.81.0.bb b/recipes-devtools/rust/rust_1.81.0.bb
index 8cb4558..06f48f1 100644
--- a/recipes-devtools/rust/rust_1.81.0.bb
+++ b/recipes-devtools/rust/rust_1.81.0.bb
@@ -377,8 +377,3 @@  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)}"