<div><span style="font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000;">Hi Richard.<br /></span></div>
<div> </div>
<div><span style="font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000;">Thank you for the fast response.</span></div>
<p><br /><br /> Am 17-May-2017 15:40:27 +0200 schrieb levitte@openssl.org:</p>
<blockquote style="margin-left: 0; padding-left: 5px; border-left: 2px solid navy;">The are two ways to handle this. One is with the usual setting of<br /> LD_LIBRARY_PATH:<br /><br /> $ LD_LIBRARY_PATH=`pwd` ldd libssl.so.1.0.0</blockquote>
<div>Yes, this seems to work.</div>
<div>Somehow I'd like to avoid having to tell every user to use the correct settings.</div>
<div> </div>
<blockquote style="margin-left: 0; padding-left: 5px; border-left: 2px solid navy;">The other is, when you compile your application, to use<br /> -Wl,-rpath,/prefix/openssl/lib</blockquote>
<div>Where would these options typically go?</div>
<div>One of the applications is curl, which worked when I set "LDFLAGS=-R/prefix/openssl/lib" when doing configure/make/make install in the curl build directory.</div>
<div>One of the applications is Apache httpd, which seems to not work when doing the same. So I'd definitely try your suggestion.</div>
<div> </div>
<blockquote style="margin-left: 0; padding-left: 5px; border-left: 2px solid navy;">Incidently, I think that when you do this, you'll find that it finds<br /> your libraries all right:<br /><br /> $ ldd /prefix/openssl/bin/openssl</blockquote>
<div>Now this is interesting. Yes, openssl can find both the libraries libssl and libcrypto. Would that imply that rpath is only a setting for application (executables) but not for shared libraries?</div>
<div>In that case the test I tried would be totally meaningless.</div>
<div> </div>
<div>Hiran</div>