1From db0d59cd06f3ffd350379847c0885e1bfb85af0f Mon Sep 17 00:00:00 2001
2From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3Date: Sat, 7 Mar 2015 11:34:42 +0100
4Subject: [PATCH 2/2] build: add Libs.private field in libnl pkg-config file
5
6In order to support static linking, the libnl pkg-config file should
7indicate in its Libs.private field the libraries that libnl-3.0.a
8requires. The LIBS variable contains the appropriate list of
9libraries: -lm in all cases, and -lpthread when pthread support is
10enabled. This allows to statically link applications against libnl
11properly.
12
13Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14---
15 libnl-3.0.pc.in | 1 +
16 1 file changed, 1 insertion(+)
17
18diff --git a/libnl-3.0.pc.in b/libnl-3.0.pc.in
19index b87e3dc..ddbc999 100644
20--- a/libnl-3.0.pc.in
21+++ b/libnl-3.0.pc.in
22@@ -7,4 +7,5 @@ Name: libnl
23 Description: Convenience library for netlink sockets
24 Version: @PACKAGE_VERSION@
25 Libs: -L${libdir} -lnl-@MAJ_VERSION@
26+Libs.private: @LIBS@
27 Cflags: -I${includedir}/libnl@MAJ_VERSION@
28--
292.1.0
30
31