pgsql: Use exported symbols list on macOS for loadable modules as well

Started by Peter Eisentrautabout 1 year ago1 messagescomitters
Jump to latest
#1Peter Eisentraut
peter_e@gmx.net

Use exported symbols list on macOS for loadable modules as well

On macOS, when building with the make system, the exported symbols
list $(SHLIB_EXPORTS) was ignored. This was probably not intentional,
it was probably just forgotten, since that combination has never
actually been used until now (for libpq-oauth).

The meson build system handles this correctly. Also, other platforms
have been doing this correctly.

This fixes it. It also does a bit of refactoring to make the code
match the layout for other platforms.

Reviewed-by: Jacob Champion <jacob.champion@enterprisedb.com>
Discussion: /messages/by-id/c70ca32e-b109-460d-9810-6e23ebb4473f@eisentraut.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3feff3916ee106c084eca848527dc2d2c3ef4e89

Modified Files
--------------
src/Makefile.shlib | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)