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.