The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / pcsc-lite / 0001-pthread-needed-for-libusb.patch
1 configure.ac: explicitly add pthread cflags/libs in the libusb test
2
3 If libusb-config does not exist, LIBUSB_CFLAGS and PTHREAD_CFLAGS will be
4 empty, and the test for libusb will be performed without additional flags.
5 However, when libusb needs threads, some extra flags are needed (depending
6 on the platform), like -pthreads, -lpthread, etc. Without these flags, the
7 test for libusb_init() will fail to link correctly, and pcsc-lite will fail
8 detecting libusb.
9
10 Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
11
12 Upstream-status: will be submitted
13
14 ---
15
16 diff --git a/configure.ac b/configure.ac
17 --- a/configure.ac
18 +++ b/configure.ac
19 @@ -254,8 +254,8 @@ if test "x$use_libusb" != xno ; then
20         saved_CPPFLAGS="$CPPFLAGS"
21         saved_LIBS="$LIBS"
22  
23 -       CPPFLAGS="$CPPFLAGS $LIBUSB_CFLAGS"
24 -       LIBS="$LDFLAGS $LIBUSB_LIBS"
25 +       CPPFLAGS="$CPPFLAGS $LIBUSB_CFLAGS $PTHREAD_CFLAGS"
26 +       LIBS="$LDFLAGS $LIBUSB_LIBS $PTHREAD_LIBS"
27  
28         AC_CHECK_HEADERS(libusb.h, [],
29                 [ AC_MSG_ERROR([libusb.h not found, use ./configure LIBUSB_CFLAGS=...]) ])