added linker options to Makefile needed for shipping shared libraries
authorHolger Schemel <info@artsoft.org>
Tue, 13 Oct 2015 18:44:01 +0000 (20:44 +0200)
committerHolger Schemel <info@artsoft.org>
Tue, 13 Oct 2015 18:44:01 +0000 (20:44 +0200)
src/Makefile

index 0f8c0997fe9dcff77db7005332cc9ce10e8a5f1a..2fe28d6b37ac158bde97a5d8333e0eae79427ef4 100644 (file)
@@ -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