1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-29 09:02:46 +00:00
nixpkgs/pkgs/tools/networking/tlspool/fixing-rpath.patch
2017-03-03 17:38:33 +01:00

37 lines
850 B
Diff

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