Re: [External] : Best way to have a system with openssl-1.1 and 3.0?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 9/5/23 10:58, Michael Brunnbauer wrote:
But the Loader will alway prefer the libcurl.so.4 found under /usr/lib64
to the one under /usr/curl_openssl1/lib. It seems having two libcurls with
the same version number linked to different openssl version is not an option.

Doesn't -Wl,-rpath=/usr/... (in LD_FLAGS) cause the runtime linker to prefer that directory over /usr/lib64 when searching for the dependent libs? For example:

$ readelf -d /usr/local/bin/php-cgi | grep RPATH
 0x000000000000000f (RPATH)              Library rpath: [/usr/local/lib64]
$ ldd /usr/local/bin/php-cgi | grep libcurl
    libcurl.so.4 => /usr/local/lib64/libcurl.so.4 (0x00007facbfcf9000)
$ readelf -d /usr/local/lib64/libcurl.so.4 | grep RPATH
 0x000000000000000f (RPATH)              Library rpath: [/usr/local/openssl3/lib64]
$ ldd /usr/local/lib64/libcurl.so.4 | grep libcrypto
    libcrypto.so.3 => /usr/local/openssl3/lib64/libcrypto.so.3 (0x00007f0ed16f3000)


Tom.III


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux