From: Bernd Kuhls Date: Sat, 11 Nov 2017 16:41:53 +0000 (+0100) Subject: package/openjpeg: fix build with threads disabled X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a6facc809b01e1c7b02bb93ede4a4bff7b91a091;p=buildroot.git package/openjpeg: fix build with threads disabled Fixes http://autobuild.buildroot.net/results/f16/f16a558c30199a92e93a31e0ba391b99a9bd689f/ Signed-off-by: Bernd Kuhls Signed-off-by: Thomas Petazzoni --- diff --git a/package/openjpeg/openjpeg.mk b/package/openjpeg/openjpeg.mk index df85168b80..9a8fdab7a4 100644 --- a/package/openjpeg/openjpeg.mk +++ b/package/openjpeg/openjpeg.mk @@ -15,4 +15,10 @@ OPENJPEG_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBPNG),libpng) OPENJPEG_DEPENDENCIES += $(if $(BR2_PACKAGE_TIFF),tiff) OPENJPEG_DEPENDENCIES += $(if $(BR2_PACKAGE_LCMS2),lcms2) +ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y) +OPENJPEG_CONF_OPTS += -DOPJ_USE_THREAD=ON +else +OPENJPEG_CONF_OPTS += -DOPJ_USE_THREAD=OFF +endif + $(eval $(cmake-package))