diff --git a/Makefile b/Makefile index e4e5bdc..fd9209b 100644 --- a/Makefile +++ b/Makefile @@ -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)