summaryrefslogtreecommitdiff
path: root/src/Makefile.shlib
diff options
context:
space:
mode:
authorPeter Eisentraut2022-08-24 06:23:49 +0000
committerPeter Eisentraut2022-08-24 06:23:49 +0000
commit161355ee6d2c64c0c4853a0646795028d666f052 (patch)
tree5126809af0b3a953bb25d3846d236b6b60fab412 /src/Makefile.shlib
parentd951052a9e02bfacad8bd6f0f53a4dcd3b7e6d1f (diff)
Change shared library installation naming on macOS
It is not customary to install a shared library with a minor version number (libpq.5.16.dylib) on macOS. We just need the file with the major version number (libpq.5.dylib) and the one without version number (libpq.dylib). This also matches the installation layout used by Meson. Discussion: https://www.postgresql.org/message-id/e0c44fb2-8b66-a4b9-b274-7ed3a1a0ab74@enterprisedb.com
Diffstat (limited to 'src/Makefile.shlib')
-rw-r--r--src/Makefile.shlib2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile.shlib b/src/Makefile.shlib
index 2af6192f0f3..e4658320f8b 100644
--- a/src/Makefile.shlib
+++ b/src/Makefile.shlib
@@ -122,7 +122,7 @@ ifeq ($(PORTNAME), darwin)
version_link = -compatibility_version $(SO_MAJOR_VERSION) -current_version $(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
endif
LINK.shared = $(COMPILER) -dynamiclib -install_name '$(libdir)/lib$(NAME).$(SO_MAJOR_VERSION)$(DLSUFFIX)' $(version_link) $(exported_symbols_list) -multiply_defined suppress
- shlib = lib$(NAME).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)$(DLSUFFIX)
+ shlib = lib$(NAME).$(SO_MAJOR_VERSION)$(DLSUFFIX)
shlib_major = lib$(NAME).$(SO_MAJOR_VERSION)$(DLSUFFIX)
else
# loadable module