From bae6509ce0e32a1aee77ac585ff9e7c39cdd12c2 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 26 May 2025 19:13:24 +0000 Subject: Support shlibs on MacOS Signed-off-by: Laurent Bercot --- Makefile | 44 ++++++++++++++++++++++++++++++++++---------- README.macos | 3 --- configure | 21 +++++++++++++++------ tools/configure.template | 21 +++++++++++++++------ 4 files changed, 64 insertions(+), 25 deletions(-) delete mode 100644 README.macos diff --git a/Makefile b/Makefile index 90098b5..a8af4b4 100644 --- a/Makefile +++ b/Makefile @@ -25,10 +25,13 @@ LIB_DEFS := BIN_SYMLINKS := TEST_BINS := +-include config.mak +include package/targets.mak + define library_definition -LIB$(1) := lib$(2).$(if $(DO_ALLSTATIC),a,so).xyzzy +LIB$(1) := lib$(2).$(if $(DO_ALLSTATIC),a,$(SHLIB_EXT)).xyzzy ifdef DO_SHARED -SHARED_LIBS += lib$(2).so.xyzzy +SHARED_LIBS += lib$(2).$(SHLIB_EXT).xyzzy endif ifdef DO_STATIC STATIC_LIBS += lib$(2).a.xyzzy @@ -67,9 +70,6 @@ $(DESTDIR)$(1)/$(2): $(DESTDIR)$(1)/$(SYMLINK_TARGET_$(2)) exec $(INSTALL) -l $$(