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

From Marco Bambini
Subject Re: Libpq linked statically linked to OpenSSL/LibreSSL
Date
Msg-id 5B426B6F-4BC9-43B6-B9E8-B0236A47B2AC@creolabs.com
Whole thread Raw
In response to RE: Libpq linked statically linked to OpenSSL/LibreSSL  (ALBERTO CABELLO SÁNCHEZ <alberto@unex.es>)
List pgsql-interfaces
What sounds really odd is that I replaced all the occurrences of -lssl -lcrypto with the full path to the static
librariesin all involved Makefile, but the resulting libpq.so library still has undefined links to the SSL functions. 


> On 9 Dec 2022, at 09:00, ALBERTO CABELLO SÁNCHEZ <alberto@unex.es> wrote:
>
>> Marco Bambini <marco@creolabs.com> wrote:
>>
>> I tried to follow the advices from Andreas but without any luck.
>> I added the  --with-includes=, --with-libraries= arguments to the configure
>> command (with path to my static LibreSSL libraries) and I also modified the Makefile.global with:
>> -Wl,-Bstatic -lssl -lcrypto -Wl,-Bdynamic
>>
>> The resulting libpq.so is bigger (in size) than the previous one but it continues
>> to try to dynamically load the SSL functions.
>
> This was also the result I got, -lssl seems to leave without effect the "-with-*" options.




pgsql-interfaces by date:

Previous
From: ALBERTO CABELLO SÁNCHEZ
Date:
Subject: RE: Libpq linked statically linked to OpenSSL/LibreSSL
Next
From: Flaris Feller
Date:
Subject: Transaction control in a C language function