Re: Compile 12.2 with specific OpenSSL libraries

Поиск
Список
Период
Сортировка
От Joshua Poehls
Тема Re: Compile 12.2 with specific OpenSSL libraries
Дата
Msg-id CAF5BchgY7Rk5CqJPHLSt1nr+4P1AfNn2CzfLM_mtRoUxfrFZSQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Compile 12.2 with specific OpenSSL libraries  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Thanks, Tom. I really appreciate you taking the time to help me out!

I think I'm good now. I ran `readelf -d libpq.so | grep runpath` and I see that the path I specified in --with-libraries is present (albeit after my system path). It also appears the version I expected of libssl is being used (libssl.so.1.1).

At this point I think it's fairly straightforward to set the rpath to lock down the runtime linking as you mentioned. Thanks again!

On Tue, Sep 29, 2020 at 1:33 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
Joshua Poehls <joshua@poehls.me> writes:
> rpath and LD_LIBRARY_PATH are only relevant for the runtime
> linking/resolution, right? My concern is that at *compilation time* the
> wrong version of OpenSSL is being picked up.

No; --with-libraries will control what's linked against.  The problem
you face is that the dynamic linker has its own idea of how to resolve
the library references at runtime.  (ldd just reports on what the
dynamic linker would do; there's no trace in the executable file of
exactly which copy of a shlib was linked against.)

                        regards, tom lane


--
--
Joshua Poehls

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Compile 12.2 with specific OpenSSL libraries
Следующее
От: Rob Sargent
Дата:
Сообщение: Re: Gurjeet Singh Index Adviser User Interface