From a85c6c16d92aa243848b0d7fa41d211189c77062 Mon Sep 17 00:00:00 2001 From: falkTX Date: Wed, 1 Nov 2023 15:09:28 +0100 Subject: [PATCH] Setup rpath for mod-app linux builds Signed-off-by: falkTX --- utils/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/Makefile b/utils/Makefile index 18409926..27c9ee9b 100644 --- a/utils/Makefile +++ b/utils/Makefile @@ -35,6 +35,9 @@ endif ifeq ($(MODAPP),1) CXXFLAGS += -DMODAPP +ifneq ($(MACOS)$(WINDOWS),true) +LDFLAGS += -Wl,-rpath,'$$ORIGIN/..' +endif else ifeq ($(shell pkg-config --exists alsa && echo true), true) CXXFLAGS += -DHAVE_ALSA ALSA_CFLAGS = $(shell pkg-config --cflags alsa)