about summary refs log tree commit diff
path: root/pkgs/tools/networking/tlspool/fixing-rpath.patch
blob: 6a434f3e4008886a6bb45e308b1a9e7c18f858b4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From 8082f050794f771d1afb8e5c3d08862fc633922b Mon Sep 17 00:00:00 2001
From: joachim schiele <js@lastlog.de>
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