wireshark: fix static build with libpcap+libusb
authorBaruch Siach <baruch@tkos.co.il>
Sun, 21 Aug 2016 15:06:38 +0000 (18:06 +0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 21 Aug 2016 20:21:42 +0000 (22:21 +0200)
commit02241bf0fc9b3b83e89e19a8c907659509a3e803
treee596f1b51b1add162ae8a45c0bb199d42f607002
parentc215ce5021334edfd7385a5218548959438463f6
wireshark: fix static build with libpcap+libusb

The wireshark autoconf acinclude.m4 source calls AC_PATH_TOOL() to find
pcap-config only when --with-pcap is missing. Otherwise it just trusts the
PCAP_CONFIG environment variable. Since we use --with-pcap, seeding
ac_cv_path_PCAP_CONFIG gives nothing. Set PCAP_CONFIG instead to let the
configure script discover the dependencies of libpcap. This fixes static build
when libpcap links with libusb.

Fixes:
http://autobuild.buildroot.net/results/ef5/ef50939b89373aad04275cbdeeff4c0e2807c0d5/
http://autobuild.buildroot.net/results/ffc/ffc921135c16c7017cd7a23c5e0c445757509abc/
http://autobuild.buildroot.net/results/2d8/2d8cd47cc664dff0f76a230b36c37291f3087e35/

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/wireshark/wireshark.mk