Unify DLSUFFIX on Darwin

From: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Unify DLSUFFIX on Darwin
Date: 2022-06-22 11:12:21
Message-ID: bcc45f78-e3c3-8fb3-7c42-5371b48b5266@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

macOS has traditionally used extension .dylib for shared libraries (used
at build time) and .so for dynamically loaded modules (used by
dlopen()). This complicates the build system a bit. Also, Meson uses
.dylib for both, so it would be worth unifying this in order to be able
to get equal build output.

There doesn't appear to be any reason to use any particular extension
for dlopened modules, since dlopen() will accept anything and PostgreSQL
is well-factored to be able to deal with any extension. Other software
packages that I have handy appear to be about 50/50 split on which
extension they use for their plugins. So it seems possible to change
this safely.

Attachment Content-Type Size
0001-Unify-DLSUFFIX-on-Darwin.patch text/plain 4.0 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ashutosh Bapat 2022-06-22 11:29:16 Re: Make COPY extendable in order to support Parquet and other formats
Previous Message Amit Kapila 2022-06-22 11:05:45 Re: Replica Identity check of partition table on subscriber