aboutsummaryrefslogtreecommitdiff
path: root/package/pcsc-lite/pcsc-lite.mk
diff options
context:
space:
mode:
authorGravatar Thomas De Schampheleire <patrickdepinguin@gmail.com>2014-02-27 10:18:40 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2014-02-27 14:26:44 +0100
commit1ddf44a3ab97161f93a0c22cb55fc302456cc61c (patch)
tree0f878153a481610dc2b5f5b54e2d7e8d014aee90 /package/pcsc-lite/pcsc-lite.mk
parent1f5f26be955aa0dd653c7e57eda1549b2354b289 (diff)
downloadbuildroot-1ddf44a3ab97161f93a0c22cb55fc302456cc61c.tar.gz
buildroot-1ddf44a3ab97161f93a0c22cb55fc302456cc61c.tar.bz2
pcsc-lite: add patch to fix libusb detection when linking statically
When libusb support is requested in pcsc-lite, the configure script will try to link a test application to check libusb_init(). However, when libusb needs threads, the linking step should link in threads as well. The configure script, first tries to call libusb-config to determine the necessary cflags and libraries (which should include the thread flags), but this program does not exist, so the cflags/libs variables are empty. Therefore, add a patch to explicitly add PTHREAD_CFLAGS and PTHREAD_LIBS to the libusb test, so libusb is detected correctly. Fixes http://autobuild.buildroot.org/results/432/432be0db3f8415f6a026b69234579ad4d23b6421/ Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/pcsc-lite/pcsc-lite.mk')
-rw-r--r--package/pcsc-lite/pcsc-lite.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/pcsc-lite/pcsc-lite.mk b/package/pcsc-lite/pcsc-lite.mk
index afbe822561..7048573b19 100644
--- a/package/pcsc-lite/pcsc-lite.mk
+++ b/package/pcsc-lite/pcsc-lite.mk
@@ -11,6 +11,7 @@ PCSC_LITE_INSTALL_STAGING = YES
PCSC_LITE_DEPENDENCIES = host-pkgconf
PCSC_LITE_LICENSE = BSD-3c
PCSC_LITE_LICENSE_FILES = COPYING
+PCSC_LITE_AUTORECONF = YES
# - libudev and libusb are optional
# - libudev and libusb can't be used together