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
This commit is contained in:
1 parent
3653daedb6
commit
003e45a9f3
1 file changed
+3
-2
+3
-2
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user