sane-backends: unbreak on toolchains without threads support
authorPeter Korsgaard <peter@korsgaard.com>
Mon, 4 May 2015 17:11:09 +0000 (19:11 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 4 May 2015 17:11:09 +0000 (19:11 +0200)
Fixes:
http://autobuild.buildroot.net/results/f2a/f2a43b62aa2a720c538fc60c80c78c8ed5b04dea/

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/sane-backends/sane-backends.mk

index 4b29ddaf6e618caca2c53a271f31603d66f0a97a..3cb81a92ee810415e8a96789483f00d20435e930 100644 (file)
@@ -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