pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Unify DLSUFFIX on Darwin
Date: Wed, 06 Jul 2022 05:44:37 +0000
Message-ID: <E1o8xq0-001QzK-5G@gemulon.postgresql.org> (raw)

Unify DLSUFFIX on Darwin

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.

Discussion: https://www.postgresql.org/message-id/flat/bcc45f78-e3c3-8fb3-7c42-5371b48b5266%40enterprisedb.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b55f62abb2c2e07dfae99e19a2b3d7ca9e58dc1a

Modified Files
--------------
config/python.m4              | 15 +++++----------
configure                     | 15 +++++----------
src/Makefile.shlib            |  2 --
src/makefiles/Makefile.darwin |  2 +-
src/template/darwin           |  2 ++
5 files changed, 13 insertions(+), 23 deletions(-)



Message-ID: <E1o8xq0-001QzK-5G@gemulon.postgresql.org>
Permalink:  ../E1o8xq0-001QzK-5G@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1o8xq0-001QzK-5G@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org
  Subject: Re: pgsql: Unify DLSUFFIX on Darwin
  In-Reply-To: <E1o8xq0-001QzK-5G@gemulon.postgresql.org>
  References: <E1o8xq0-001QzK-5G@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox