Skip to contentSkip to conversation

package/openjpeg: fix build with threads disabled

PATCH New Bernd Kuhls 2 participants 2 messages Nov 11, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/openjpeg: fix build with threads disabled

Fixes
http://autobuild.buildroot.net/results/f16/f16a558c30199a92e93a31e0ba391b99a9bd689f/

---
 package/openjpeg/openjpeg.mk | 6 ++++++
 1 file changed, 6 insertions(+)
package/openjpeg/openjpeg.mk +6 -0
index df85168b80..9a8fdab7a4 100644
@@ -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))
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 package/openjpeg: fix build with threads disabled

Hello,

Quoted 7 lines · Bernd Kuhls

Fixes
http://autobuild.buildroot.net/results/f16/f16a558c30199a92e93a31e0ba391b99a9bd689f/

---
 package/openjpeg/openjpeg.mk | 6 ++++++
 1 file changed, 6 insertions(+)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com