[openssl-dev] Configure --prefix and --openssldir
Viktor Dukhovni
openssl-users at dukhovni.org
Tue Jan 19 19:26:27 UTC 2016
On Tue, Jan 19, 2016 at 07:52:30PM +0100, Richard Levitte wrote:
> openssl-users> I only use "--prefix". There seems to be some code in Configure
> openssl-users> to support BSD platforms by adding "-rpath" when --prefix is not
> openssl-users> /usr, but it does not seem to work (the flag does not actually make
> openssl-users> it into the link command for libssl.so). I have to explicitly
> openssl-users> tweak the BSD definition in Configurations/.
> openssl-users>
> openssl-users> Fixing that might be useful.
>
> Check if this litte patch helps:
>
> openssl base64 -d <<EOF | gunzip -c | patch -p1
> H4sIAHWFnlYAA5WOzUrDQACEz9mnGNMcGpNNUmKJIoXaerDgQVTwYG3Jz26yuN2E
> zRZbrH12KwZUPIinGQbmmykE56C0FAZpOK0VF+VaM2RfnghVsA3iiJ1FWRIEcRwl
> J6cZBlGUDIeEUvq9STzP+9Eej0EHSZz4CbxOD5Hg6Dsm1SUzGO0RzqnIcyd0rR5m
> yjCJKfJ61QjJNEEPUqhnplErucVLxdThcaMZFxuIFqo2CNetDsgv7GJydzmnoUtg
> vRJqOW2ValYsZcFlWgYjG/RB+lQ3qan8udO/nk1uby7ur1z7k9RtHO2x2i0+Jh7D
> p2Nn554T7y/Wv2iw3gi69+22XYoCisG2XfIOdTfeR58BAAA=
> EOF
Yes, that seems to work:
$ ./Configure --prefix=$HOME/install shared BSD-x86_64
$ make
$ readelf -d libssl.so | grep RPATH
0x000000000000000f (RPATH) Library rpath: [/u/viktor/install/lib]
Thanks.
--
Viktor.
More information about the openssl-dev
mailing list