diff options
author | Richard Levitte <levitte@openssl.org> | 2004-11-02 01:13:04 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2004-11-02 01:13:04 +0000 |
commit | ffd0f93f14e513b86747e9b1bd50e81e5d275834 (patch) | |
tree | a0d44adb0aa49be0d34defcd4c0fb261727af025 /test/Makefile.ssl | |
parent | 1a4b8e7cee43d037107f7db193aaf8b2abf78f80 (diff) | |
download | openssl-ffd0f93f14e513b86747e9b1bd50e81e5d275834.tar.gz |
Because -rpath/-R may have been used, our settings of LD_LIBRARY_PATH
and friends may be entirely useless. In such a case, LD_PRELOAD is
the answer, at least on platforms using LD_LIBRARY_PATH. There might
be other variables to set on other platforms, please fill us in...
For now, we only do this with the tests, so they won't fail for silly
reasons like getting dynamically linked to older installed libraries
rather than the newly built ones...
PR: 960
Diffstat (limited to 'test/Makefile.ssl')
-rw-r--r-- | test/Makefile.ssl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/Makefile.ssl b/test/Makefile.ssl index b5c23a639f..1dc1edf997 100644 --- a/test/Makefile.ssl +++ b/test/Makefile.ssl @@ -136,8 +136,9 @@ SET_SO_PATHS=OSSL_LIBPATH="`cd ..; pwd`"; \ DYLD_LIBRARY_PATH="$$OSSL_LIBPATH:$$DYLD_LIBRARY_PATH"; \ SHLIB_PATH="$$OSSL_LIBPATH:$$SHLIB_PATH"; \ LIBPATH="$$OSSL_LIBPATH:$$LIBPATH"; \ + LD_PRELOAD="$$OSSL_LIBPATH/libssl.so $$OSSL_LIBPATH/libcrypto.so"; \ if [ "$(PLATFORM)" = "Cygwin" ]; then PATH="$${LIBPATH}:$$PATH"; fi; \ - export LD_LIBRARY_PATH DYLD_LIBRARY_PATH SHLIB_PATH LIBPATH PATH + export LD_LIBRARY_PATH DYLD_LIBRARY_PATH SHLIB_PATH LIBPATH PATH LD_PRELOAD alltests: \ test_des test_idea test_sha test_md4 test_md5 test_hmac \ |