diff options
author | Niels Möller <nisse@lysator.liu.se> | 2020-03-31 19:52:15 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2020-03-31 19:52:15 +0200 |
commit | b3474802b81df6db83492adf251503d86b48299c (patch) | |
tree | 0734667d9e88d922da43237be4a64c4bed980739 /run-tests | |
parent | 1249981465e0a3f3786e647ead13b45a87a87b69 (diff) | |
download | nettle-b3474802b81df6db83492adf251503d86b48299c.tar.gz |
Rework setting of LD_LIBRARY_PATH for tests.test-shlib-dir
* testsuite/Makefile.in (check): Pass only TEST_SHLIB_DIR
to the run-tests script, and leave setting of LD_LIBRARY_PATH and
related variables to that script.
* examples/Makefile.in (check): Likewise.
* run-tests: Check TEST_SHLIB_DIR, and set up LD_LIBRARY_PATH and
related member variables.
* config.make.in (abs_top_builddir, TEST_SHLIB_DIR): New variables.
Diffstat (limited to 'run-tests')
-rwxr-xr-x | run-tests | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -28,6 +28,18 @@ fi export srcdir +if [ -n "$TEST_SHLIB_DIR" ] ; then + # Prepend to LD_LIBRARY_PATH, if it is alredy set. + LD_LIBRARY_PATH="${TEST_SHLIB_DIR}${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" + # For MACOS + DYLD_LIBRARY_PATH="$TEST_SHLIB_DIR" + # For Windows + PATH="${TEST_SHLIB_DIR}:${PATH}" + export LD_LIBRARY_PATH + export DYLD_LIBRARY_PATH + export PATH +fi + # When used in make rules, we sometimes get the filenames VPATH # expanded, but usually not. find_program () { |