From 8082f050794f771d1afb8e5c3d08862fc633922b Mon Sep 17 00:00:00 2001 From: joachim schiele Date: Wed, 1 Mar 2017 13:12:19 +0100 Subject: [PATCH] RPATH is back https://github.com/arpa2/tlspool/issues/58#issuecomment-283318767 --- tool/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tool/Makefile b/tool/Makefile index c1e6ce9..9a15012 100644 --- a/tool/Makefile +++ b/tool/Makefile @@ -18,9 +18,17 @@ LIBS = PREFIX = /usr/local +DIR := ${CURDIR} +LIBDIR := "" +ifndef DESTDIR + LIBDIR=$(DIR)/../lib/ +else + LIBDIR=$(DESTDIR)/lib +endif + tlspool_CFLAGS = tlspool_LIBS = ../lib/libtlspool.so -tlspool_LDFLAGS = -L ../lib -ltlspool +tlspool_LDFLAGS = -L ../lib -ltlspool -Wl,-rpath,$(LIBDIR) donai_CFLAGS = -DDONAI_ONLY_TEXTPROC donai_SRC = ../src/donai.c -- 2.11.1