Search Postgresql Archives

Re: Libpq linked to LibreSSL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Dec 04, 2022 at 09:02:07AM +0100, Marco Bambini wrote:
> After several attempts (and runtime crashes), I am asking for help
> with how to compile libpq with LibreSSL support (both dynamic and
> static links would be OK to me).
> I know how to compile libpq with OpenSSL support, but I need to
> force it to link to LibreSSL. 

LibreSSL is rather close to OpenSSL in terms of API compatibility as
far as I recall, OpenBSD using it.  Note that we have two buildfarm
members that I guess are doing so (adding Mikael in CC to confirm
here): morepork and plover.

The configure option --with-openssl would be the one to use, but you'd
better be sure that CFLAGS is pointing at the path(s) of the headers
of LibreSSL and that LDFLAGS points to the libraries of LibreSSL if
you have an environment mixing both.  Then at run-time, you could
force LD_LIBRARY_PATH to load the right thing.

There may be trickier things like building with OpenLDAP for example,
as Postgres built with --with-ldap could link to a version of OpenLDAP
linking to OpenSSL, but you'd want LibreSSL for a full consistency, so
be careful..  The same could happen with Python, but without knowing
what kind of environment you are using it will be hard to reach a
clear conclusion without at least more details.
--
Michael

Attachment: signature.asc
Description: PGP signature


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux