diff options
Diffstat (limited to 'meta/recipes-connectivity/libpcap/libpcap-1.3.0/0001-canusb-needs-lpthread.patch')
| -rw-r--r-- | meta/recipes-connectivity/libpcap/libpcap-1.3.0/0001-canusb-needs-lpthread.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/libpcap/libpcap-1.3.0/0001-canusb-needs-lpthread.patch b/meta/recipes-connectivity/libpcap/libpcap-1.3.0/0001-canusb-needs-lpthread.patch new file mode 100644 index 0000000000..94788aa3c4 --- /dev/null +++ b/meta/recipes-connectivity/libpcap/libpcap-1.3.0/0001-canusb-needs-lpthread.patch | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | Upstream-Status: Backport | ||
| 2 | |||
| 3 | From 2259a62edaf667d4bc9d1a28e612e3a7c0011545 Mon Sep 17 00:00:00 2001 | ||
| 4 | From: Gustavo Zacarias <gustavo@zacarias.com.ar> | ||
| 5 | Date: Sat, 30 Jun 2012 10:48:14 -0700 | ||
| 6 | Subject: [PATCH] canusb: needs -lpthread | ||
| 7 | |||
| 8 | canusb uses pthreads, but -lpthread is never added to LIBS hence missing | ||
| 9 | from pcap-config, causing build failures. Fix this. | ||
| 10 | --- | ||
| 11 | configure | 2 +- | ||
| 12 | configure.in | 2 +- | ||
| 13 | 2 files changed, 2 insertions(+), 2 deletions(-) | ||
| 14 | |||
| 15 | diff --git a/configure b/configure | ||
| 16 | index 1368ac5..24587c8 100755 | ||
| 17 | --- a/configure | ||
| 18 | +++ b/configure | ||
| 19 | @@ -11529,7 +11529,7 @@ cat >>confdefs.h <<\_ACEOF | ||
| 20 | _ACEOF | ||
| 21 | |||
| 22 | CANUSB_SRC=pcap-canusb-linux.c | ||
| 23 | - LIBS="-lusb-1.0 $LIBS" | ||
| 24 | + LIBS="-lusb-1.0 -lpthread $LIBS" | ||
| 25 | { echo "$as_me:$LINENO: canusb sniffing is supported" >&5 | ||
| 26 | echo "$as_me: canusb sniffing is supported" >&6;} | ||
| 27 | |||
| 28 | diff --git a/configure.in b/configure.in | ||
| 29 | index ba5b64e..47e0b70 100644 | ||
| 30 | --- a/configure.in | ||
| 31 | +++ b/configure.in | ||
| 32 | @@ -1408,7 +1408,7 @@ if test "x$enable_canusb" != "xno" ; then | ||
| 33 | [ | ||
| 34 | AC_DEFINE(PCAP_SUPPORT_CANUSB, 1, [target host supports canusb]) | ||
| 35 | CANUSB_SRC=pcap-canusb-linux.c | ||
| 36 | - LIBS="-lusb-1.0 $LIBS" | ||
| 37 | + LIBS="-lusb-1.0 -lpthread $LIBS" | ||
| 38 | AC_MSG_NOTICE(canusb sniffing is supported) | ||
| 39 | ], | ||
| 40 | AC_MSG_NOTICE(canusb sniffing is not supported; install libusb1.0 lib devel to enable it) | ||
| 41 | -- | ||
| 42 | 1.7.9.5 | ||
| 43 | |||
