aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2012-06-30 10:48:14 -0700
committerGuy Harris <guy@alum.mit.edu>2012-06-30 10:48:14 -0700
commit2259a62edaf667d4bc9d1a28e612e3a7c0011545 (patch)
tree65bb77cfe0f2fbd5c545e561fe1e0bd619bf7959
parentc4c2cb1101edfc21faf249fce7bd8cad6d634049 (diff)
canusb: needs -lpthread
canusb uses pthreads, but -lpthread is never added to LIBS hence missing from pcap-config, causing build failures. Fix this.
-rwxr-xr-xconfigure2
-rw-r--r--configure.in2
2 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index 1368ac56..24587c89 100755
--- a/configure
+++ b/configure
@@ -11529,7 +11529,7 @@ cat >>confdefs.h <<\_ACEOF
_ACEOF
CANUSB_SRC=pcap-canusb-linux.c
- LIBS="-lusb-1.0 $LIBS"
+ LIBS="-lusb-1.0 -lpthread $LIBS"
{ echo "$as_me:$LINENO: canusb sniffing is supported" >&5
echo "$as_me: canusb sniffing is supported" >&6;}
diff --git a/configure.in b/configure.in
index ba5b64e6..47e0b70c 100644
--- a/configure.in
+++ b/configure.in
@@ -1408,7 +1408,7 @@ if test "x$enable_canusb" != "xno" ; then
[
AC_DEFINE(PCAP_SUPPORT_CANUSB, 1, [target host supports canusb])
CANUSB_SRC=pcap-canusb-linux.c
- LIBS="-lusb-1.0 $LIBS"
+ LIBS="-lusb-1.0 -lpthread $LIBS"
AC_MSG_NOTICE(canusb sniffing is supported)
],
AC_MSG_NOTICE(canusb sniffing is not supported; install libusb1.0 lib devel to enable it)