pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: autoconf: Move export_dynamic determination to configure
Date: Wed, 07 Dec 2022 03:05:56 +0000
Message-ID: <E1p2kkt-002Jdy-HX@gemulon.postgresql.org> (raw)

autoconf: Move export_dynamic determination to configure

Previously export_dynamic was set in src/makefiles/Makefile.$port. For solaris
this required exporting with_gnu_ld. The determination of with_gnu_ld would be
nontrivial to copy for meson PGXS compatibility.  It's also nice to delete
libtool.m4.

This uses -Wl,--export-dynamic on all platforms, previously all platforms but
FreeBSD used -Wl,-E. The likelihood of a name conflict seems lower with the
longer spelling.

Discussion: https://postgr.es/m/20221005200710.luvw5evhwf6clig6@awork3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9db49fc5bfdc0126be03f4b8986013e59d93b91d

Modified Files
--------------
aclocal.m4                     |   1 -
config/c-compiler.m4           |  25 +++--
config/libtool.m4              | 119 -----------------------
configure                      | 209 +++++++++++++++--------------------------
configure.ac                   |   8 +-
src/Makefile.global.in         |   2 +-
src/backend/Makefile           |  12 ++-
src/makefiles/Makefile.freebsd |   1 -
src/makefiles/Makefile.linux   |   1 -
src/makefiles/Makefile.netbsd  |   1 -
src/makefiles/Makefile.openbsd |   1 -
src/makefiles/Makefile.solaris |   4 -
12 files changed, 108 insertions(+), 276 deletions(-)



Message-ID: <E1p2kkt-002Jdy-HX@gemulon.postgresql.org>
Permalink:  ../E1p2kkt-002Jdy-HX@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1p2kkt-002Jdy-HX@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: andres@anarazel.de
  Subject: Re: pgsql: autoconf: Move export_dynamic determination to configure
  In-Reply-To: <E1p2kkt-002Jdy-HX@gemulon.postgresql.org>
  References: <E1p2kkt-002Jdy-HX@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