Re: Compile 12.2 with specific OpenSSL libraries

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Compile 12.2 with specific OpenSSL libraries
Дата
Msg-id 713345.1601403922@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Compile 12.2 with specific OpenSSL libraries  (Joshua Poehls <joshua@poehls.me>)
Ответы Re: Compile 12.2 with specific OpenSSL libraries  (Joshua Poehls <joshua@poehls.me>)
Список pgsql-general
Joshua Poehls <joshua@poehls.me> writes:
> I'm compiling PG 12.2 (on CentOS 7) and need to ensure that it uses a
> specific version of OpenSSL (1.1.1h). I've added what I think are the
> appropriate `./configure` flags (see below) and compilation is successful
> but when I run `ldd -d initdb` or `readelf` I can see that it linked to a
> different version of libcrypto/libssl.

> --with-openssl --with-includes=/path/to/ssl/include
> --with-libraries=/path/to/ssl/lib

> My theory is that even though I'm adding --with-libraries/--with-includes,
> the build script is finding and using the version of OpenSSL in /lib64/
> because it has higher precedence somewhere.

Linux is generally pretty unfriendly to putting shlibs in nonstandard
places.  If you want to do that, you need to add an "rpath" spec to
the calling programs, or set LD_LIBRARY_PATH, or fool around with the
dynamic linker's configuration files.  "man ld.so" will get you started.

            regards, tom lane



В списке pgsql-general по дате отправления:

Предыдущее
От: Joshua Poehls
Дата:
Сообщение: Compile 12.2 with specific OpenSSL libraries
Следующее
От: Joshua Poehls
Дата:
Сообщение: Re: Compile 12.2 with specific OpenSSL libraries