summaryrefslogtreecommitdiff
path: root/package/sane-backends
diff options
context:
space:
mode:
authorPeter Korsgaard <peter@korsgaard.com>2015-05-04 19:11:09 +0200
committerPeter Korsgaard <peter@korsgaard.com>2015-05-04 19:11:09 +0200
commit0045808c1b271eef75e08fe02b4032f3f0e3dfc7 (patch)
tree2bf97c72d5140fe614616083ba21e7033e51c998 /package/sane-backends
parentac95a7a27bf319a69db4183bc9bdd4ec9543d575 (diff)
sane-backends: unbreak on toolchains without threads support
Fixes: http://autobuild.buildroot.net/results/f2a/f2a43b62aa2a720c538fc60c80c78c8ed5b04dea/ Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/sane-backends')
-rw-r--r--package/sane-backends/sane-backends.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/sane-backends/sane-backends.mk b/package/sane-backends/sane-backends.mk
index 4b29ddaf6..3cb81a92e 100644
--- a/package/sane-backends/sane-backends.mk
+++ b/package/sane-backends/sane-backends.mk
@@ -11,6 +11,9 @@ SANE_BACKENDS_LICENSE = GPLv2+
SANE_BACKENDS_LICENSE_FILES = COPYING
SANE_BACKENDS_INSTALL_STAGING = YES
+SANE_BACKENDS_CONF_OPTS = \
+ $(if $(BR2_TOOLCHAIN_HAS_THREADS),--enable-pthread,--disable-pthread)
+
ifeq ($(BR2_PACKAGE_LIBUSB),y)
SANE_BACKENDS_DEPENDENCIES += libusb
SANE_BACKENDS_CONF_OPTS += --enable-libusb_1_0