build: fix detection of libpcap on Ubuntu 23.04
Beginning with version 1.10.2, pcap-config treats
unrecognized command-line options as an error.
Change-Id: Iba62d6d4586cf505c68032338048d04597baff96
diff --git a/tools/dump/wscript b/tools/dump/wscript
index df23de9..397a076 100644
--- a/tools/dump/wscript
+++ b/tools/dump/wscript
@@ -2,8 +2,9 @@
top = '../..'
def configure(conf):
- conf.check_cfg(package='libpcap', uselib_store='PCAP',
- path='pcap-config', args='--libs --cflags')
+ conf.check_cfg(msg='Checking for libpcap',
+ path='pcap-config', args='--cflags --libs',
+ package='', uselib_store='PCAP')
conf.check_cxx(msg='Checking if struct tcphdr has member th_off ',
define_name='HAVE_BSD_TCPHDR', mandatory=False,
fragment='''#include <netinet/tcp.h>