pkg-config: needs pthread as private library
authorYann E. MORIN <yann.morin.1998@free.fr>
Sat, 13 Dec 2014 14:38:54 +0000 (09:38 -0500)
committerSteve Dickson <steved@redhat.com>
Sat, 13 Dec 2014 14:38:54 +0000 (09:38 -0500)
libtirpc needs pthreads. This is automatically pulled in when linking
with the shared library, thanks to the DT_NEEDED ELF tags.

But for a static library, there is no such mechanism to identify
required libraries.

Thus, add -lpthread to the private libraries in the pkg-config file.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Steve Dickson <steved@redhat.com>
libtirpc.pc.in

index ec4cf755cb1e34b80582bb8107553f9164c53846..38034c53eb1311661697ef098e8cddcd0e83b8db 100644 (file)
@@ -8,4 +8,5 @@ Description: Transport Independent RPC Library
 Requires:
 Version: @PACKAGE_VERSION@
 Libs: -L@libdir@ -ltirpc
+Libs.private: -lpthread
 Cflags: -I@includedir@/tirpc