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

From Jacob Champion
Subject Re: libcurl in libpq.pc
Date
Msg-id CAOYmi+mEyaXG_AA5uv=oCCa1ci8cg1aA69n-Esyc1y1s955CEQ@mail.gmail.com
Whole thread Raw
In response to Re: libcurl in libpq.pc  (Jacob Champion <jacob.champion@enterprisedb.com>)
Responses Re: libcurl in libpq.pc
List pgsql-hackers
On Tue, Sep 23, 2025 at 2:15 PM Jacob Champion
<jacob.champion@enterprisedb.com> wrote:
> > That would be in Cflags.private.
>
> Yes.

The FAQ you cite says

> In either case, pkg-config will output the [private dependency's] compiler flags when --static is used or not.

which seems awfully counterproductive, and was apparently
controversial when it was proposed in 2005 [1, 2]. This is why --libs
works and --cflags doesn't. Now that pkg-config's successor supports
Cflags.private, I wonder if there's room to fix these
mutually-conflicting use cases...

--Jacob

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=340904#10
[2] https://bugzilla.gnome.org/show_bug.cgi?id=322240



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: plan shape work
Next
From: "Matheus Alcantara"
Date:
Subject: Re: LISTEN/NOTIFY bug: VACUUM sets frozenxid past a xid in async queue