From: Danomi Manchego Date: Sun, 14 Sep 2014 14:14:51 +0000 (-0400) Subject: libqrencode: link with pthread to avoid build failure X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=18c7d1468b9eb9cc517693e3fe14037499b03ad8;p=buildroot.git 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 --- 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