]> The Tcpdump Group git mirrors - libpcap/commitdiff
canusb: needs -lpthread
authorGustavo Zacarias <[email protected]>
Sat, 30 Jun 2012 17:48:14 +0000 (10:48 -0700)
committerGuy Harris <[email protected]>
Sat, 30 Jun 2012 17:48:14 +0000 (10:48 -0700)
canusb uses pthreads, but -lpthread is never added to LIBS hence missing
from pcap-config, causing build failures. Fix this.

configure
configure.in

index 1368ac563e7aa9de59f9b721bb2e27afd4f84d7a..24587c894ba5fbb936f69fe524730dde33f960a2 100755 (executable)
--- 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;}
 
index ba5b64e60f93eb9f78cf6b5fa60920c4d93d7510..47e0b70cb7a71d8676a423a7dcea552bf54887a9 100644 (file)
@@ -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)