mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 17:19:20 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
abee4e69e1
commit
155ee00592
@@ -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)}"
|
||||
|
||||
@@ -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)}"
|
||||
|
||||
Reference in New Issue
Block a user