summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2024-11-20 16:19:49 +0100
committerDylan Baker <dylan@pnwbakers.com>2024-11-20 10:19:33 -0800
commit9f3f88feed74518f406839f4935b79a45d364540 (patch)
treea5302ec921a9a9ea248898e7b28257577a574597 /packaging
parent69af44d50ef6fdceefff08446d915cc6b1fe2d50 (diff)
downloadmeson-9f3f88feed74518f406839f4935b79a45d364540.tar.gz
rust: fix computation of library directory
Using a rustup-based toolchain fails the "rust/2 sharedlib" test for me: ./prog: error while loading shared libraries: libstd-211931512faabf29.so: cannot open shared object file: No such file or directory This happens because recent rustup places the standard library under SYSROOT/lib/rustlib/TARGET/lib. Retrieve the right directory using "--print target-libdir". This also provides a more accurate version for rustc installed in /usr. Before: $ echo $(/usr/bin/rustc --print sysroot)/lib /usr/lib After: $ /usr/bin/rustc --print target-libdir /usr/lib/rustlib/x86_64-unknown-linux-gnu/lib While at it, cache the value to avoid repeated process invocation. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'packaging')
0 files changed, 0 insertions, 0 deletions