nisse@lysator.liu.se (Niels Möller) writes:
I think a reasonable way is to add
abs_top_builddir = @abs_top_builddir@
TEST_SHLIB_DIR = "${abs_top_builddir}/.lib"
to config.make.in, and use that to set LD_LIBRARY_PATH. And possibly only pass TEST_SHLIB_DIR to the run-tests script, and move the logic to setup the environment.
I've pushed a change like that to the branch test-shlib-dir. Please try it out.
This also makes tests with a shared-library build work in termux on my android phone. It used to fail, in part because termux depends on LD_LIBRARY_PATH being set, and possibly with additional trouble from using an LD_LIBRARY_PATH with relative file names.
Regards, /Niels