Re: [openssl-dev] [Bug, maybe] [master] bin/* no longer find their libraries if installed in non-default locations

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: [openssl-dev] [Bug, maybe] [master] bin/* no longer find their libraries if installed in non-default locations

Viktor Dukhovni

> On Mar 1, 2017, at 11:13 AM, Steffen Nurpmeso <[hidden email]> wrote:
>
>  $ ldd /home/steffen/usr/opt/.ssl-1.1.0/bin/openssl
>  ...
>  libssl.so.1.1 => not found
>  libcrypto.so.1.1 => not found
>
> This is new behaviour, until now the installation was always
> self-contained when configured via
>
>  ./config --prefix=$(MYPREFIX) zlib-dynamic no-hw shared

I sure hope that "$()" was in fact "${}", the former only
works in Makefiles, and means something quite different
in POSIX shells.

You need an "RPATH" setting in the linker flags for the shared
libraries to be found in in $PREFIX/lib.  Perhaps:

    ./config --prefix="${MYPREFIX}" -R "${MYPREFIX}/lib" ...

Or "-rpath ..." or "-Wl,-R,..." ...

--
        Viktor.

--
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users