[openssl-users] Build from source; library not found?
Viktor Dukhovni
openssl-users at dukhovni.org
Thu May 18 22:35:32 UTC 2017
> On May 18, 2017, at 4:08 PM, Richard Levitte <levitte at openssl.org> wrote:
>
> hiran.chaudhuri> Incidently, I think that when you do this, you'll find that it
> hiran.chaudhuri> finds
> hiran.chaudhuri> your libraries all right:
> hiran.chaudhuri>
> hiran.chaudhuri> $ ldd /prefix/openssl/bin/openssl
> hiran.chaudhuri>
> hiran.chaudhuri> Now this is interesting. Yes, openssl can find both the libraries
> hiran.chaudhuri> libssl and libcrypto. Would that imply that rpath is only a setting
> hiran.chaudhuri> for application (executables) but not for shared libraries?
> hiran.chaudhuri> In that case the test I tried would be totally meaningless.
>
> Yes, that's correct.
NO, it is not correct, shared libraries also have rpaths for their
own dependencies. And when building OpenSSL for installation in
non-default locations (not /usr/lib and the like) the libraries
should have an rpath.
--
Viktor.
More information about the openssl-users
mailing list