meson/mesonbuild/backend
Daniel Stone a0514a7c41 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
2022-11-30 11:44:47 -08:00
..
__init__.py Moved backends to their own module. 2016-01-23 20:02:52 +02:00
backends.py tests: Write out LD_LIBRARY_PATH for built shared libraries 2022-11-30 11:44:47 -08:00
ninjabackend.py pylint: enable the bad_builtin checker 2022-11-29 23:26:05 -05:00
vs2010backend.py Fix options overrides for vsbackend 2022-11-10 06:19:41 -05:00
vs2012backend.py treewide: various cleanups to move imports for mypy into typechecking blocks 2022-06-10 09:15:48 -04:00
vs2013backend.py treewide: various cleanups to move imports for mypy into typechecking blocks 2022-06-10 09:15:48 -04:00
vs2015backend.py treewide: various cleanups to move imports for mypy into typechecking blocks 2022-06-10 09:15:48 -04:00
vs2017backend.py treewide: various cleanups to move imports for mypy into typechecking blocks 2022-06-10 09:15:48 -04:00
vs2019backend.py treewide: various cleanups to move imports for mypy into typechecking blocks 2022-06-10 09:15:48 -04:00
vs2022backend.py treewide: various cleanups to move imports for mypy into typechecking blocks 2022-06-10 09:15:48 -04:00
xcodebackend.py pylint: enable the bad_builtin checker 2022-11-29 23:26:05 -05:00