From eea4c6296575047e2cd892cfa135aa6a0f08f757 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Tue, 2 Apr 2024 23:07:18 -0400 Subject: [PATCH] Update RACK_USER_DIR in plugin.mk for all OS's. --- plugin.mk | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugin.mk b/plugin.mk index 3463700b..0a599244 100644 --- a/plugin.mk +++ b/plugin.mk @@ -33,20 +33,21 @@ ifdef ARCH_LIN LDFLAGS += -Wl,-rpath=/tmp/Rack2 # Since the plugin's compiler could be a different version than Rack's compiler, link libstdc++ and libgcc statically to avoid ABI issues. LDFLAGS += -static-libstdc++ -static-libgcc - RACK_USER_DIR ?= $(HOME)/.Rack2 + XDG_DATA_HOME ?= $(HOME)/.local/share + RACK_USER_DIR ?= $(XDG_DATA_HOME)/Rack2 endif ifdef ARCH_MAC TARGET := $(TARGET).dylib LDFLAGS += -undefined dynamic_lookup - RACK_USER_DIR ?= $(HOME)/Documents/Rack2 + RACK_USER_DIR ?= $(HOME)/Library/Application Support/Rack2 CODESIGN ?= codesign -f -s - endif ifdef ARCH_WIN TARGET := $(TARGET).dll LDFLAGS += -static-libstdc++ - RACK_USER_DIR ?= $(USERPROFILE)/Documents/Rack2 + RACK_USER_DIR ?= $(LOCALAPPDATA)/Rack2 endif PLUGINS_DIR := $(RACK_USER_DIR)/plugins-$(ARCH_OS)-$(ARCH_CPU)