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

From Bruce Momjian
Subject Re: Libpq linked statically linked to OpenSSL/LibreSSL
Date
Msg-id Y4+I1iM2gRBYlf9B@momjian.us
Whole thread Raw
In response to Re: Libpq linked statically linked to OpenSSL/LibreSSL  (Andres Freund <andres@anarazel.de>)
List pgsql-interfaces
On Tue, Dec  6, 2022 at 10:01:00AM -0800, Andres Freund wrote:
> > I then modified the Makefile.global in the src directory by replacing the occurrences of -lssl and -lcrypto with:
> > /root/rothsoft/libressl-3.6.1/ssl/.libs/libssl.a /root/rothsoft/libressl-3.6.1/crypto/.libs/libcrypto.a
> > in the LIBS entry.
> 
> I think this is completely the wrong path. You should add libressl's include
> and library directories to --with-includes=, --with-libraries=.

The big point is that a compile-compatible library is not necessarily a
link-compatible library, and that LibreSSL is probably only
compile-compatible with OpenSSL, hence the need to use the LibreSSL
includes.

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EDB                                      https://enterprisedb.com

Embrace your flaws.  They make you human, rather than perfect,
which you will never be.



pgsql-interfaces by date:

Previous
From: Andres Freund
Date:
Subject: Re: Libpq linked statically linked to OpenSSL/LibreSSL
Next
From: Marco Bambini
Date:
Subject: Re: Libpq linked statically linked to OpenSSL/LibreSSL