$NetBSD: patch-src_plugins_tiling.diff,v 1.1 2019/04/02 01:49:09 jmmv Exp $ Avoid references to the work directory in the built .so plugins. We rely on the pkgsrc Makefile to set PLUGINSDIR at build time. --- src/plugins/tiling/makefile.orig 2019-02-24 16:52:45.000000000 +0000 +++ src/plugins/tiling/makefile @@ -5,7 +5,7 @@ DEV_BIN_PATH = ./../../../plugins DEV_BUILD_PATH = ./bin DEV_BINS = $(DEV_BUILD_PATH)/tiling SRC = ./plugin.mm -LINK = -shared -fPIC -framework Carbon -framework Cocoa -framework ApplicationServices +LINK = -shared -fPIC -framework Carbon -framework Cocoa -framework ApplicationServices -Wl,-install_name -Wl,$(PLUGINSDIR)/tiling.so DIR := ${CURDIR} NOW := $(shell date "+%s")