Re: meson: Add _static and _shared suffixes to the library names - Mailing list pgsql-hackers

From Tom Lane
Subject Re: meson: Add _static and _shared suffixes to the library names
Date
Msg-id 3391734.1755016060@sss.pgh.pa.us
Whole thread Raw
In response to Re: meson: Add _static and _shared suffixes to the library names  (Jacob Champion <jacob.champion@enterprisedb.com>)
Responses Re: meson: Add _static and _shared suffixes to the library names
List pgsql-hackers
Jacob Champion <jacob.champion@enterprisedb.com> writes:
> On Tue, Aug 12, 2025 at 8:46 AM Nazir Bilal Yavuz <byavuz81@gmail.com> wrote:
>> The solution is changing the libraries' names [3]. Changing
>> conflicting libraries' names is actually enough but I wanted to add
>> _static and _shared suffixes to all of the libraries' names as I think
>> this is more future proof.
>>
>> Any feedback would be appreciated.

> Just as a kneejerk reaction, I think it'd be really strange if the
> Meson version of libpq-oauth.a was named libpq-oauth_static.a on disk,
> and clients had to figure out which build system was used in order to
> link.

This proposal seems utterly unacceptable from a client compatibility
standpoint.  Sure, we could get away with renaming purely internal
things like boot_parser, but libpq?  It won't do for the ecpg
libraries either.

> Is there a way to work around this problem in a way that affects Windows only?

Even on Windows, the proposal is unacceptable.  The build products
have to remain the same as what they've been for decades.  If meson
is unable to build them, we can't use meson.  But I imagine there is
something you can do to persuade the newer version to do what it was
doing before.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Making type Datum be 8 bytes everywhere
Next
From: Nathan Bossart
Date:
Subject: Re: Non-reproducible AIO failure