diff options
author | Peter Eisentraut | 2022-03-25 07:44:31 +0000 |
---|---|---|
committer | Peter Eisentraut | 2022-03-25 07:56:02 +0000 |
commit | 23119d51a14c046dae35ae5e6ad9e35982d044fd (patch) | |
tree | 890a141660b21c60d9f6e2fc8efd7944a55673a9 /config | |
parent | 56566835039ac5eed70f188518cef1a7ea0971b2 (diff) |
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 <[email protected]>
Discussion: https://www.postgresql.org/message-id/[email protected]
Diffstat (limited to 'config')
-rw-r--r-- | config/python.m4 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/config/python.m4 b/config/python.m4 index 52f34070dd8..e500873ff3c 100644 --- a/config/python.m4 +++ b/config/python.m4 @@ -120,7 +120,9 @@ else found_shlib=0 for d in "${python_libdir}" "${python_configdir}" /usr/lib64 /usr/lib do - # We don't know the platform DLSUFFIX here, so check 'em all. + # Note: DLSUFFIX is for loadable modules, not shared + # libraries, so cannot be used here portably. Just + # check all known possibilities. for e in .so .dll .dylib .sl; do if test -e "$d/lib${ldlibrary}$e"; then python_libdir="$d" |