From 18c7d1468b9eb9cc517693e3fe14037499b03ad8 Mon Sep 17 00:00:00 2001 From: Danomi Manchego Date: Sun, 14 Sep 2014 10:14:51 -0400 Subject: [PATCH] libqrencode: link with pthread to avoid build failure Fixes: http://autobuild.buildroot.net/results/1ca0719dd1fe0bbc528ec99b5bc2b42e985bfdca/ [Peter: only if toolchain has threads, pass --disable-thread-safety otherwise] Signed-off-by: Danomi Manchego Signed-off-by: Peter Korsgaard --- package/libqrencode/libqrencode.mk | 6 ++++++ 1 file changed, 6 insertions(+) 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