From: Holger Schemel Date: Tue, 13 Oct 2015 18:44:01 +0000 (+0200) Subject: added linker options to Makefile needed for shipping shared libraries X-Git-Tag: 4.0.0.0-rc1~146 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=6ed4903f372bb3cb45ca67b31355d98877453690;p=rocksndiamonds.git added linker options to Makefile needed for shipping shared libraries --- 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