diff options
author | Daniel Stone <daniels@collabora.com> | 2022-11-30 12:03:57 +0000 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2022-11-30 11:44:47 -0800 |
commit | a0514a7c4183a9e42d436865087d2f887d658d54 (patch) | |
tree | b1809a0710b47f320b847a6949ba03ef8179dc94 /mesonbuild/compilers/cuda.py | |
parent | 67da2ad0fb3a0e45bd878d21aa1c5d956214c483 (diff) | |
download | meson-a0514a7c4183a9e42d436865087d2f887d658d54.zip meson-a0514a7c4183a9e42d436865087d2f887d658d54.tar.gz meson-a0514a7c4183a9e42d436865087d2f887d658d54.tar.bz2 |
tests: Write out LD_LIBRARY_PATH for built shared libraries
When a test executable references a local shared library, make sure that
we apply the appropriate $LD_LIBRARY_PATH so that the linker can find it
at runtime.
The DT_RUNPATH entry does ensure that the binary references the path to
the shared library build, however the RUNPATH list is only searched
after $LD_LIBRARY_PATH. So if the user has a shared library of the same
name in their $LD_LIBRARY_PATH, this will be the version found and used
for running the test. This is bad if you're trying to use Meson to test
a shared library you're developing and have installed in a local prefix
which is under $LD_LIBRARY_PATH.
Fixes #1635
Diffstat (limited to 'mesonbuild/compilers/cuda.py')
0 files changed, 0 insertions, 0 deletions