From 27f42b16232c9fbfd4412c141814aa0a8aa565bd Mon Sep 17 00:00:00 2001 From: Bob Polis Date: Mon, 30 Dec 2024 13:19:55 +0100 Subject: [PATCH] Fix runtime library loading for macOS --- tpl/Makefile.unified | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tpl/Makefile.unified b/tpl/Makefile.unified index e4e5bdc..fd9209b 100644 --- a/tpl/Makefile.unified +++ b/tpl/Makefile.unified @@ -126,7 +126,8 @@ else $(OUTDIR)/$(REALNAME): $(OBJS) endif ifeq ($(UNAME_S),Darwin) - $(CXX) -dynamiclib -o $(OUTDIR)/$(REALNAME) -current_version $(MAJOR) -compatibility_version $(MINOR) $(LDFLAGS) $(OBJS) $(LDLIBS) + $(CXX) -dynamiclib -o $(OUTDIR)/$(REALNAME) -install_name $(LIBDIR)/$(REALNAME) \ +-current_version $(MAJOR) -compatibility_version $(MINOR) $(LDFLAGS) $(OBJS) $(LDLIBS) else ifeq ($(UNAME_S),OpenBSD) $(CXX) -g -shared -Wl,-soname,$(REALNAME) -o $(OUTDIR)/$(REALNAME) $(LDFLAGS) $(OBJS) $(LDLIBS) else ifeq ($(UNAME_S),Linux)