RE: Libpq linked statically linked to OpenSSL/LibreSSL

Поиск
Список
Период
Сортировка
От ALBERTO CABELLO SÁNCHEZ
Тема RE: Libpq linked statically linked to OpenSSL/LibreSSL
Дата
Msg-id PA4PR05MB896952E77CAFA3AD5CB188EBA7189@PA4PR05MB8969.eurprd05.prod.outlook.com
обсуждение исходный текст
Ответ на RE: Libpq linked statically linked to OpenSSL/LibreSSL  (ALBERTO CABELLO SÁNCHEZ <alberto@unex.es>)
Ответы Re: Libpq linked statically linked to OpenSSL/LibreSSL  (Marco Bambini <marco@creolabs.com>)
Список pgsql-interfaces
>> Hi all,
>>
>> After several attempts, I am asking for help with how to compile libpq with OpenSSL
>> statically linked.
>> I need to have libpq linked with LibreSSL, but if I could statically link OpenSSL, I think
>> I could switch the TLS libraries at compile time.
>
> redo the step which creates libpq.so appending your libssl.a location
> (mine is /usr/lib/x86_64-linux-gnu/libssl.a) at the end.

Just wanted to correct: you also have to remove "-lssl". So I guess you can just
substitute "-lssl" for libssl.a location in src/interfaces/libpq/Makefile (two occurrences)
and build as usual.




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

Предыдущее
От: ALBERTO CABELLO SÁNCHEZ
Дата:
Сообщение: RE: Libpq linked statically linked to OpenSSL/LibreSSL
Следующее
От: Marco Bambini
Дата:
Сообщение: Re: Libpq linked statically linked to OpenSSL/LibreSSL