]> git.ipfire.org Git - thirdparty/iptables.git/commit
build: use pkg-config for libpcap
authorAlyssa Ross <hi@alyssa.is>
Sun, 2 Apr 2023 23:29:40 +0000 (23:29 +0000)
committerPhil Sutter <phil@nwl.cc>
Tue, 4 Apr 2023 11:38:07 +0000 (13:38 +0200)
commitaed58f545bec0712bcdbe14e2b8386db0c650a91
tree0bf73d6859623bfd6fe87c3d4593b3d4e987bb41
parent78850e7dba64a949c440dbdbe557f59409c6db48
build: use pkg-config for libpcap

If building statically, with libpcap built with libnl support, linking
will fail, as the compiler won't be able to find the libnl symbols
since static libraries don't contain dependency information.  To fix
this, use pkg-config to find the flags for linking libpcap, since the
pkg-config files contain the neccesary dependency information.

autoconf will add code to the configure script for initializing
pkg-config the first time it seems PKG_CHECK_MODULES, so make the
libnfnetlink check the first one in the script, so the initialization
code is run unconditionally.

Signed-off-by: Alyssa Ross <hi@alyssa.is>
Signed-off-by: Phil Sutter <phil@nwl.cc>
configure.ac
utils/Makefile.am