From 6ed4903f372bb3cb45ca67b31355d98877453690 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Tue, 13 Oct 2015 20:44:01 +0200 Subject: [PATCH] added linker options to Makefile needed for shipping shared libraries --- src/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Makefile b/src/Makefile index 0f8c0997..2fe28d6b 100644 --- a/src/Makefile +++ b/src/Makefile @@ -117,6 +117,8 @@ OPTIONS = $(DEBUG) -Wall # only for debugging purposes # OPTIONS = -O3 ifdef BUILD_DIST # distribution build +SYS_LDFLAGS := $(shell echo $(SYS_LDFLAGS) | \ + sed -e "s%-rpath,[^ ]*%-rpath,'\$$ORIGIN/lib'%") OPTIONS = -O3 -Wall endif -- 2.34.1