]> code.ossystems Code Review - openembedded-core.git/commit
rust: Avoid buildtools+uninative issues with glibc symbols mismatches
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 25 Aug 2021 13:40:51 +0000 (14:40 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 26 Aug 2021 21:09:25 +0000 (22:09 +0100)
commit099c761ffddcc828329d3083cc8f3d24b43e9277
treef8e1afc5c857b9d4dcc0204a3bb865059d6850ae
parent842cba1820416d79e30e3f1940e2486707fc7cff
rust: Avoid buildtools+uninative issues with glibc symbols mismatches

If we use an external buildtools tarball, that combined with uninative results
in build failures with symbol mismatches. This was tracked down to the prebuilt
rust binaries that are downloaded. The libc/loader used to load them is used to
execute target binaries/libraries and therefore anything with built with a newer
libc would fail.

Add code to use patchelf to change the interpreter to our own uninative one if
present which ensures the newer libc and loader are used, hence avoiding the issue.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/rust/rust.inc