Refactor DLSUFFIX handling
authorPeter Eisentraut <peter@eisentraut.org>
Fri, 25 Mar 2022 07:44:31 +0000 (08:44 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Fri, 25 Mar 2022 07:56:02 +0000 (08:56 +0100)
commit23119d51a14c046dae35ae5e6ad9e35982d044fd
tree890a141660b21c60d9f6e2fc8efd7944a55673a9
parent56566835039ac5eed70f188518cef1a7ea0971b2
Refactor DLSUFFIX handling

Move DLSUFFIX from makefiles into header files for all platforms.
Move the DLSUFFIX assignment from src/makefiles/ to src/templates/,
have configure read it, and then substitute it into Makefile.global
and pg_config.h.  This avoids the need for all makefile rules that
need it to locally set CPPFLAGS.  It also resolves an inconsistent
setup between the two Windows build systems.

Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://www.postgresql.org/message-id/2f9861fb-8969-9005-7518-b8e60f2bead9@enterprisedb.com
26 files changed:
config/python.m4
configure
configure.ac
src/Makefile.global.in
src/backend/jit/Makefile
src/backend/utils/fmgr/Makefile
src/backend/utils/fmgr/dfmgr.c
src/bin/pg_upgrade/Makefile
src/include/pg_config.h.in
src/include/port/win32_port.h
src/interfaces/ecpg/test/Makefile
src/makefiles/Makefile.aix
src/makefiles/Makefile.cygwin
src/makefiles/Makefile.darwin
src/makefiles/Makefile.freebsd
src/makefiles/Makefile.hpux
src/makefiles/Makefile.linux
src/makefiles/Makefile.netbsd
src/makefiles/Makefile.openbsd
src/makefiles/Makefile.solaris
src/makefiles/Makefile.win32
src/template/cygwin
src/template/hpux
src/template/win32
src/test/regress/GNUmakefile
src/tools/msvc/Solution.pm