Re: AIX support - Mailing list pgsql-hackers

From Tristan Partin
Subject Re: AIX support
Date
Msg-id DEU0S658WUJK.BKFCA1OHWFR9@partin.io
Whole thread Raw
In response to RE: AIX support  (Srirama Kucherlapati <sriram.rk@in.ibm.com>)
Responses RE: AIX support
List 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)



pgsql-hackers by date:

Previous
From: Sami Imseih
Date:
Subject: Re: [Proposal] Adding callback support for custom statistics kinds
Next
From: Thomas Munro
Date:
Subject: Re: Solaris versus our NLS files