RE: Libpq linked statically linked to OpenSSL/LibreSSL - Mailing list pgsql-interfaces

From ALBERTO CABELLO SÁNCHEZ
Subject RE: Libpq linked statically linked to OpenSSL/LibreSSL
Date
Msg-id PA4PR05MB896952E77CAFA3AD5CB188EBA7189@PA4PR05MB8969.eurprd05.prod.outlook.com
Whole thread Raw
In response to RE: Libpq linked statically linked to OpenSSL/LibreSSL  (ALBERTO CABELLO SÁNCHEZ <alberto@unex.es>)
Responses Re: Libpq linked statically linked to OpenSSL/LibreSSL  (Marco Bambini <marco@creolabs.com>)
List 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 by date:

Previous
From: ALBERTO CABELLO SÁNCHEZ
Date:
Subject: RE: Libpq linked statically linked to OpenSSL/LibreSSL
Next
From: Marco Bambini
Date:
Subject: Re: Libpq linked statically linked to OpenSSL/LibreSSL