Re: libcurl in libpq.pc - Mailing list pgsql-hackers

From Jacob Champion
Subject Re: libcurl in libpq.pc
Date
Msg-id CAOYmi+mWisr3fqOsxtii+OUBaECmUhivAdWMGDjFOSPFMufyaA@mail.gmail.com
Whole thread Raw
In response to Re: libcurl in libpq.pc  (Christoph Berg <myon@debian.org>)
Responses Re: libcurl in libpq.pc
List pgsql-hackers
On Tue, Sep 23, 2025 at 12:42 PM Christoph Berg <myon@debian.org> wrote:
> Maybe by the letter, but I think we have a real problem and need to do
> something.

If I break Wolfgang's use case again, we will still have a real problem.

> > I think we can't avoid it; if anyone wants to get Windows support
> > working they'll need -DCURL_STATICLIB as provided by libcurl.pc.
>
> That would be in Cflags.private.

Yes.

> > > $ pkgconf --libs --static libpq
> > > -lpq -lpgcommon -lpgport -lpq-oauth -lssl -lcrypto -lgssapi_krb5 -lm -lldap -lcurl -lssl -lz -lzstd -ldl -pthread
-lcrypto-lz -lzstd -ldl -pthread 
> >
> > Prettier, but wrong? I don't think that's going to link, is it?
>
> Wrong how?

It doesn't link. You'll be missing an incredible number of symbols.

--Jacob



pgsql-hackers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: Fix overflow of nbatch
Next
From: Tom Lane
Date:
Subject: Re: plan shape work