rust sets LD_LIBRARY_PATH which causes a lot of problems with host binaries conflicting with SDK libraries. By using sh/bash from the SDK we avoid those issues.
[YOCTO #14878] Signed-off-by: Richard Purdie <[email protected]> --- meta/recipes-devtools/rust/rust-cross-canadian.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/recipes-devtools/rust/rust-cross-canadian.inc b/meta/recipes-devtools/rust/rust-cross-canadian.inc index 2b09661542d..77d45a37a31 100644 --- a/meta/recipes-devtools/rust/rust-cross-canadian.inc +++ b/meta/recipes-devtools/rust/rust-cross-canadian.inc @@ -7,12 +7,13 @@ LICENSE = "MIT" MODIFYTOS = "0" +# Need to use our SDK's sh here, see #14878 create_sdk_wrapper () { file="$1" shift cat <<- EOF > "${file}" - #!/bin/sh + #!${base_prefix}/bin/sh \$$1 \$@ EOF -- 2.34.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#169157): https://lists.openembedded.org/g/openembedded-core/message/169157 Mute This Topic: https://lists.openembedded.org/mt/92916597/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
