The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / libnftnl / 0002-Add-Libs.private-field-to-libnftnl.pc.patch
1 From d89fca062ba966332b573673fdd5c4cf01c3e2f5 Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Mon, 29 Dec 2014 15:32:08 +0100
4 Subject: [PATCH 2/2] Add Libs.private field to libnftnl.pc
5
6 Static linking userspace programs such as nftables against libnftnl
7 currently doesn't work out of the box, because libnftnl is linked
8 against libmnl, but this isn't expressed in libnftnl pkg-config
9 file:
10
11   CCLD   nft
12 [...]/bfin-buildroot-uclinux-uclibc/sysroot/usr/lib/libnftnl.a(table.o): In function `_nft_table_nlmsg_parse':
13 table.c:(.text+0x480): undefined reference to `_mnl_attr_parse'
14 table.c:(.text+0x492): undefined reference to `_mnl_attr_get_str'
15 table.c:(.text+0x4a8): undefined reference to `_mnl_attr_get_u32'
16 table.c:(.text+0x4ca): undefined reference to `_mnl_attr_get_u32'
17 [...]
18
19 The Libs.private field is specifically designed for such usage:
20
21 From pkg-config documentation:
22
23   Libs.private:
24
25      This line should list any private libraries in use.  Private
26      libraries are libraries which are not exposed through your
27      library, but are needed in the case of static linking.
28
29 Therefore, this patch adds a reference to libmnl in the Libs.private
30 field of libnftnl pkg-config file.
31
32 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
33 ---
34  libnftnl.pc.in | 1 +
35  1 file changed, 1 insertion(+)
36
37 diff --git a/libnftnl.pc.in b/libnftnl.pc.in
38 index fd5cc6a..7fef921 100644
39 --- a/libnftnl.pc.in
40 +++ b/libnftnl.pc.in
41 @@ -12,4 +12,5 @@ Version: @VERSION@
42  Requires:
43  Conflicts:
44  Libs: -L${libdir} -lnftnl
45 +Libs.private: @LIBMNL_LIBS@
46  Cflags: -I${includedir}
47 -- 
48 2.1.0
49