Fix rpath-related Linux "test_shlibload" failure.
authorRichard Levitte <levitte@openssl.org>
Mon, 12 Nov 2018 23:16:55 +0000 (00:16 +0100)
committerRichard Levitte <levitte@openssl.org>
Tue, 13 Nov 2018 23:42:57 +0000 (00:42 +0100)
commit86736316b77e06fa9ed085a3e6fac3d337325ccb
tree1ab0fc3fe7eef2ab2ea2dd3c28aff78a2d716592
parent0c594ccc29f6ba241627f436ba3d05fc400d1066
Fix rpath-related Linux "test_shlibload" failure.

When libssl and libcrypto are compiled on Linux with "-rpath", but
not "--enable-new-dtags", the RPATH takes precedence over
LD_LIBRARY_PATH, and we end up running with the wrong libraries.
This is resolved by using full (or at least relative, rather than
just the filename to be found on LD_LIBRARY_PATH) paths to the
shared objects.

Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7626)

(cherry picked from commit 18289399743da6c3db462f37fc8797738e8acf7c)
test/recipes/90-test_shlibload.t
util/shlib_wrap.sh.in