summaryrefslogtreecommitdiffstats
path: root/scripts/lib/scriptpath.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-08-08 15:33:41 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-08-09 22:42:04 +0100
commit7275846f45db90bdb35c75eec83e7e4c62f8ad0d (patch)
treeae2d992c4b7f84f4b07d473790aee72592d74266 /scripts/lib/scriptpath.py
parente53b3008b30f45cf8ba12ad3547109aefbdd88ae (diff)
downloadpoky-7275846f45db90bdb35c75eec83e7e4c62f8ad0d.tar.gz
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>
Diffstat (limited to 'scripts/lib/scriptpath.py')
0 files changed, 0 insertions, 0 deletions