Re: AIX support

From: "Tristan Partin" <tristan(at)partin(dot)io>
To: "Srirama Kucherlapati" <sriram(dot)rk(at)in(dot)ibm(dot)com>, "AIX PG user" <postgres-ibm-aix(at)wwpdl(dot)vnet(dot)ibm(dot)com>
Cc: "Heikki Linnakangas" <hlinnaka(at)iki(dot)fi>, "Peter Eisentraut" <peter(at)eisentraut(dot)org>, "pgsql-hackers" <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: AIX support
Date: 2025-12-09 21:56:14
Message-ID: DEU0S658WUJK.BKFCA1OHWFR9@partin.io
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Howdy,

Heikki asked me to look at the renames of the static Meson targets.
I don't understand the reasoning for the changes. I am completely
unfamiliar with AIX, so maybe it's obvious. Does Meson produce a static
library and a shared library with the same file extension? If so, why is
that? That's the only reason I can think of for making those changes. Is
it AIX-specific or whatever OS you are testing on?

In your patch, I found a link to
https://www.postgresql.org/message-id/52EF20B2E3209443BC37736D00C3C1380A6E79FE@EXADV1.host.magwien.gv.at.

> -> On AIX, you can do a static as well as a dynamic
> -> link against a shared library, it depends on how you
> -> invoke the linker.
>
> When you link statically, the shared objects from
> the library are added to your executable as required;
> when you link dynamically, only references
> to the shared objects are included in the executable.
>
> Consequently you do not need a separate static library
> on AIX if you have a dynamic library.

This seems to imply that we don't need a static library at all on AIX.
However this email is also nearing 20 years old :D. Could we get away
without the renames on the Meson targets by just not defining the static
library targets?

--
Tristan Partin
Databricks (https://databricks.com)

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Munro 2025-12-09 22:03:00 Re: Solaris versus our NLS files
Previous Message Sami Imseih 2025-12-09 21:54:58 Re: [Proposal] Adding callback support for custom statistics kinds