pgsql: autoconf: Move export_dynamic determination to configure

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: autoconf: Move export_dynamic determination to configure
Date: 2022-12-07 03:05:56
Message-ID: E1p2kkt-002Jdy-HX@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2022-12-07 11:43:55 pgsql: Update outdated comment in ApplyRetrieveRule
Previous Message Michael Paquier 2022-12-07 00:12:12 pgsql: Generate pg_stat_get*() functions for databases using macros