Remove automatic RPATH - adapt shlib_wrap.sh
authorRichard Levitte <levitte@openssl.org>
Wed, 12 Oct 2016 22:08:55 +0000 (00:08 +0200)
committerRichard Levitte <richard@levitte.org>
Thu, 13 Oct 2016 00:25:46 +0000 (02:25 +0200)
commit7b7f21cd6033fd7226690640f789d1a8fb0b33b7
tree2f04107cf3c3e8a6a845b7687c3275de201d36b3
parent0de5e4f0924d5101a02480f9b42513d28db1307e
Remove automatic RPATH - adapt shlib_wrap.sh

Looking for something starting with '-Wl,-rpath,' isn't good enough,
as someone might give something like '-Wl,--enable-new-dtags,-rpath,/PATH'.
Looking for ',-rpath,' should be safe enough.

We could remove the preloading stuff entirely, but just in case the
user has chosen to given RPATH setting arguments at configuration,
we'd better make sure testing will still work.  Fair warning, there
are some configuration options that do not work with preloaded OpenSSL
libraries, such as the sanity checking ones.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(cherry picked from commit 71d8ff1a8998da20db5ab8d4024c3d155b2f6733)
util/shlib_wrap.sh.in