flowtop: take PKG_CONFIG into account for libnetfilter_conntrack
commit4de312bce77d3548af6cc448a9f4e566126b4bab
authorBaruch Siach <baruch@tkos.co.il>
Sun, 16 Apr 2017 04:49:27 +0000 (16 07:49 +0300)
committerTobias Klauser <tklauser@distanz.ch>
Tue, 23 May 2017 06:59:23 +0000 (23 08:59 +0200)
treeb941f27cad5fc58481ccf31f0507653912707f6e
parentb463e1f265628f97967a01ce0a2cf18afe7b7aa3
flowtop: take PKG_CONFIG into account for libnetfilter_conntrack

Use $PKG_CONFIG to determine the linker flags for libnetfilter_conntrack. This
fixes static link failure like the following:

  LD flowtop
.../usr/x86_64-buildroot-linux-musl/sysroot/usr/lib/../lib64/libnetfilter_conntrack.a(main.o): In function `nfct_open_nfnl':
main.c:(.text+0x52): undefined reference to `nfnl_subsys_open'
main.c:(.text+0x69): undefined reference to `nfnl_subsys_close'
main.c:(.text+0x87): undefined reference to `nfnl_subsys_open'
main.c:(.text+0xa3): undefined reference to `nfnl_subsys_close'
.../usr/x86_64-buildroot-linux-musl/sysroot/usr/lib/../lib64/libnetfilter_conntrack.a(main.o): In function `nfct_open':
main.c:(.text+0xc9): undefined reference to `nfnl_open'
main.c:(.text+0xf0): undefined reference to `nfnl_close'
...

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
flowtop/Makefile