Hello Niels,
On Tue, Mar 31, 2020 at 08:08:35PM +0200, Niels Möller wrote:
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.
The change also makes the testsuite work with uClibc in default configuration where relative paths are not allowed in LD_LIBRARY_PATH.
I have reverted the uclibc armeb CI image to the default configuration of not allowing relative paths in LD_LIBRARY_PATH.
I can confirm that the testsuite now fails for branch master-updates (https://gitlab.com/michaelweiser/nettle/-/jobs/493643301) and works for branch test-shlib-dir (https://gitlab.com/michaelweiser/nettle/-/jobs/493645063).
BTW: Should we have a note in the code or commit message as to *why* we're changing it? Nobody will remember in a few months time. ;)