$NetBSD: patch-config_mh-darwin,v 1.3 2019/04/24 07:59:36 adam Exp $ On Darwin, -install_name must be a full path. --- config/mh-darwin.orig 2019-04-24 07:37:10.000000000 +0000 +++ config/mh-darwin @@ -30,11 +30,7 @@ SHLIB.c= $(CC) -dynamiclib -dynamic $(CF SHLIB.cc= $(CXX) -dynamiclib -dynamic $(CXXFLAGS) $(LDFLAGS) $(LD_SOOPTIONS) ## Compiler switches to embed a library name and version information -ifeq ($(ENABLE_RPATH),YES) LD_SONAME = -Wl,-compatibility_version -Wl,$(SO_TARGET_VERSION_MAJOR) -Wl,-current_version -Wl,$(SO_TARGET_VERSION) -install_name $(libdir)/$(notdir $(MIDDLE_SO_TARGET)) -else -LD_SONAME = -Wl,-compatibility_version -Wl,$(SO_TARGET_VERSION_MAJOR) -Wl,-current_version -Wl,$(SO_TARGET_VERSION) -install_name $(notdir $(MIDDLE_SO_TARGET)) $(PKGDATA_TRAILING_SPACE) -endif ## Compiler switch to embed a runtime search path LD_RPATH=