From 691d645d57c4131ce2dc9909e1105e0b55910320 Mon Sep 17 00:00:00 2001 From: Bob Polis Date: Sun, 29 Dec 2024 16:56:01 +0100 Subject: [PATCH] Fix runtime library lookup for macOS --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ff367fe..6e6b30c 100644 --- a/Makefile +++ b/Makefile @@ -73,7 +73,8 @@ $(OUTDIR): $(OUTDIR)/$(REALNAME): $(OBJS) 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) endif ifeq ($(UNAME_S),OpenBSD) $(CXX) -g -shared -Wl,-soname,$(REALNAME) -o $(OUTDIR)/$(REALNAME) $(LDFLAGS) $(OBJS) $(LDLIBS)