summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/libqrencode/libqrencode.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/libqrencode/libqrencode.mk b/package/libqrencode/libqrencode.mk
index d445763604..b407195067 100644
--- a/package/libqrencode/libqrencode.mk
+++ b/package/libqrencode/libqrencode.mk
@@ -11,6 +11,12 @@ LIBQRENCODE_INSTALL_STAGING = YES
LIBQRENCODE_LICENSE = LGPLv2.1+
LIBQRENCODE_LICENSE_FILES = COPYING
+ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
+LIBQRENCODE_CONF_ENV += LIBS='-pthread'
+else
+LIBQRENCODE_CONF_OPT += --disable-thread-safety
+endif
+
ifeq ($(BR2_PACKAGE_LIBQRENCODE_TOOLS),y)
LIBQRENCODE_CONF_OPT += --with-tools=yes
LIBQRENCODE_DEPENDENCIES += libpng
OpenPOWER on IntegriCloud