RE: Libpq linked statically linked to OpenSSL/LibreSSL

From: ALBERTO CABELLO SÁNCHEZ <alberto(at)unex(dot)es>
To: Marco Bambini <marco(at)creolabs(dot)com>, Andres Freund <andres(at)anarazel(dot)de>
Cc: "pgsql-interfaces(at)lists(dot)postgresql(dot)org" <pgsql-interfaces(at)lists(dot)postgresql(dot)org>
Subject: RE: Libpq linked statically linked to OpenSSL/LibreSSL
Date: 2022-12-09 08:00:52
Message-ID: PA4PR05MB8969A96CE13551DA66276E6AA71C9@PA4PR05MB8969.eurprd05.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

> Marco Bambini <marco(at)creolabs(dot)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.

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Marco Bambini 2022-12-10 07:55:57 Re: Libpq linked statically linked to OpenSSL/LibreSSL
Previous Message Marco Bambini 2022-12-08 06:07:17 Re: Libpq linked statically linked to OpenSSL/LibreSSL