autoconf: Move export_dynamic determination to configure
authorAndres Freund <andres@anarazel.de>
Wed, 7 Dec 2022 02:55:28 +0000 (18:55 -0800)
committerAndres Freund <andres@anarazel.de>
Wed, 7 Dec 2022 02:55:28 +0000 (18:55 -0800)
commit9db49fc5bfdc0126be03f4b8986013e59d93b91d
tree9b3a2ee004e98feec42933a5174f9159ca862788
parent8018ffbf5895ee16a1fd7117c4526b47ac42332e
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
12 files changed:
aclocal.m4
config/c-compiler.m4
config/libtool.m4 [deleted file]
configure
configure.ac
src/Makefile.global.in
src/backend/Makefile
src/makefiles/Makefile.freebsd
src/makefiles/Makefile.linux
src/makefiles/Makefile.netbsd
src/makefiles/Makefile.openbsd
src/makefiles/Makefile.solaris