autoconf: Move export_dynamic determination to configure

Andres Freund <andres@anarazel.de>

Commit: 9db49fc5bfdc0126be03f4b8986013e59d93b91d
Author: Andres Freund <andres@anarazel.de>
Date: 2022-12-07T02:55:28Z
Releases: 16.0
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

Files

PathChange+/−
aclocal.m4 modified +0 −1
config/c-compiler.m4 modified +17 −8
config/libtool.m4 deleted +0 −119
configure modified +77 −132
configure.ac modified +6 −2
src/backend/Makefile modified +7 −5
src/Makefile.global.in modified +1 −1
src/makefiles/Makefile.freebsd modified +0 −1
src/makefiles/Makefile.linux modified +0 −1
src/makefiles/Makefile.netbsd modified +0 −1
src/makefiles/Makefile.openbsd modified +0 −1
src/makefiles/Makefile.solaris modified +0 −4

Discussion