Re: [Proposal] Generate pkg-config for server module development

From: Anders Åstrand <anders(at)449(dot)se>
To: Andreas Karlsson <andreas(at)proxel(dot)se>, Anders Åstrand <anders(at)449(dot)se>, pgsql-hackers(at)lists(dot)postgresql(dot)org, Nazir Bilal Yavuz <byavuz81(at)gmail(dot)com>
Subject: Re: [Proposal] Generate pkg-config for server module development
Date: 2026-01-05 09:41:58
Message-ID: 545b87a2-7807-4b49-ba85-46211658d483@449.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


On 2026-01-03 01:24, Andreas Karlsson wrote:
> On 12/17/25 3:17 PM, Anders Åstrand wrote:
>> I'm not entirely sure about what parameters we should include in the
>> pkg-config
>> file, but what I have in the attached patch is inspired by PGXS and the
>> pkg-config files we already generate for shared libraries.
>
> Have you looked at Nazir's work in progress for generating pkg-config
> files in Meson[1]? Maybe he has some ideas for what parameters to
> include. In general I think the goal should be to include the stuff
> which is in pg_conifg.

No I had not! Thank you for pointing me to that thread, it didn't seem
related when I was looking for threads about this. That patch seems much
more complete and I should probably just port it to make and include
both patches here.

It's reassuring that that patch also add it to backends build file, I
was very unsure about that.

> Will look at the actual patch later.
>
> References
>
> 1.
> https://www.postgresql.org/message-id/CAN55FZ138OBEehyxD1FKySMxKFteqf_VOR8LBkz-055YGU12rg%40mail.gmail.com
>
> Andreas
>
--
Anders Åstrand
Percona

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message cca5507 2026-01-05 09:43:27 Re: Fix outdated comments in catcache.h
Previous Message Amit Kapila 2026-01-05 09:30:47 Re: Newly created replication slot may be invalidated by checkpoint