pgsql: autoconf: Move export_dynamic determination to configure - Mailing list pgsql-committers

From Andres Freund
Subject pgsql: autoconf: Move export_dynamic determination to configure
Date
Msg-id E1p2kkt-002Jdy-HX@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: Generate pg_stat_get*() functions for databases using macros
Next
From: Alvaro Herrera
Date:
Subject: pgsql: Update outdated comment in ApplyRetrieveRule