Files
poky/meta/recipes-devtools
Richard Purdie 7275846f45 cargo: Work around host system library conflicts
cargo ends up running target-rust-ccld with LD_LIBRARY_PATH set to libdir but not
base_libdir which breaks the SDK. You see errors like:

/bin/sh: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory

On such a system, this would fail:

LD_LIBRARY_PATH="<path>/testimage-sdk/sysroots/x86_64-pokysdk-linux/usr/lib" cargo build

but this would work:

LD_LIBRARY_PATH="<path>/testimage-sdk/sysroots/x86_64-pokysdk-linux/usr/lib:<path>/testimage-sdk/sysroots/x86_64-pokysdk-linux/lib" cargo build

so wrap cargo with both paths in LD_LIBRARY_PATH.

The error depends on the versions of the host system, it reproduced on tumbleweed-ty-3.

(From OE-Core rev: 388e7cac9f90e79ce8c3c1683d8ee0f4df1bc907)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-08-09 22:42:04 +01:00
..
2022-05-27 23:50:47 +01:00
2022-06-07 21:21:54 +01:00
2021-11-25 21:55:10 +00:00
2022-07-01 11:31:42 +01:00
2022-06-04 11:28:23 +01:00
2022-07-12 23:56:10 +01:00
2022-03-16 13:39:12 +00:00
2022-04-20 13:13:59 +01:00
2022-06-17 17:57:44 +01:00
2022-05-13 17:56:29 +01:00
2022-07-23 13:55:26 +01:00
2021-11-03 10:12:42 +00:00
2022-07-23 13:55:25 +01:00
2022-04-19 14:14:12 +01:00
2022-05-05 21:17:38 +01:00
2022-05-20 09:25:47 +01:00
2022-03-23 12:13:49 +00:00
2022-07-23 13:55:25 +01:00
2022-07-18 11:47:37 +01:00
2022-03-11 06:56:01 +00:00
2022-07-23 13:55:26 +01:00
2022-08-08 15:44:21 +01:00
2022-06-07 21:21:55 +01:00
2021-08-02 15:44:10 +01:00
2022-05-27 23:50:47 +01:00
2022-06-06 13:36:05 +01:00
2021-08-02 15:44:10 +01:00
2022-06-07 21:21:55 +01:00
2021-11-10 19:27:29 +00:00
2022-08-08 15:44:21 +01:00
2022-08-02 11:30:00 +01:00
2022-05-05 21:17:38 +01:00
2022-07-14 23:22:09 +01:00
2022-08-08 15:44:20 +01:00
2022-04-26 18:25:08 +01:00
2021-12-08 20:22:10 +00:00
2022-07-23 13:55:26 +01:00