1 From 308705710d40ced3ea2a913d24ab99cc61bef01f Mon Sep 17 00:00:00 2001
2 From: "Yann E. MORIN" <yann.morin.1998@free.fr>
3 Date: Sun, 5 Apr 2015 18:11:25 +0200
4 Subject: [PATCH] pkg-config: needs pthread as private library
6 libtirpc needs pthreads. This is automatically pulled in when linking
7 with the shared library, thanks to the DT_NEEDED ELF tags.
9 But for a static library, there is no such mechanism to identify
12 Thus, add -pthread to the private libraries in the pkg-config file.
14 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
17 http://sourceforge.net/p/libtirpc/mailman/message/33072076/
19 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
22 1 file changed, 1 insertion(+)
24 diff --git a/libtirpc.pc.in b/libtirpc.pc.in
25 index ec4cf75..1dc85ea 100644
28 @@ -8,4 +8,5 @@ Description: Transport Independent RPC Library
30 Version: @PACKAGE_VERSION@
31 Libs: -L@libdir@ -ltirpc
32 +Libs.private: -pthread
33 Cflags: -I@includedir@/tirpc