libpcap: canusb support needs pthreads
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Tue, 26 Jun 2012 04:19:50 +0000 (04:19 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 26 Jun 2012 21:04:54 +0000 (23:04 +0200)
commitc69be6d2abe8f8e265f92494867e2c7e1519dd08
tree9cbba6c1802f580df74d678e5fa14099aef9a7d4
parentafc7b62c87ba7c5286d3b9cff7ed77586f41eeff
libpcap: canusb support needs pthreads

canusb support in libpcap uses pthreads but the configure script doesn't
account for -lpthread usage so it doesn't get added into LIBS which in
turn doesn't add the appropiate entry in pcap-config, causing build
failures for programs that link to libpcap that don't use pthreads
themselves (for example tcpdump).
Also add the conditional dependency on BR2_PACKAGE_LIBUSB for canusb.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/libpcap/libpcap-canusb-requires-pthread.patch [new file with mode: 0644]
package/libpcap/libpcap.mk