From f59e8974081274bf2bd22fac43c4a1a5625f06e7 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 26 May 2025 19:13:21 +0000 Subject: Support shlibs on MacOS Signed-off-by: Laurent Bercot --- Makefile | 44 ++++++++++++++++++++++++++++++++++---------- configure | 21 +++++++++++++++------ tools/configure.template | 21 +++++++++++++++------ 3 files changed, 64 insertions(+), 22 deletions(-) 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 $$(