Skip to contentSkip to conversation

package/jasper: fix build without threads

PATCH New Bernd Kuhls 1 participant 1 message Feb 5

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/jasper: fix build without threads

Buildroot commit 03a1732dea67e088ec85f92853ca14f5a3c0f7b7 bumped the package from 2.0.33 to 4.2.8. This bump includes upstream commit
https://github.com/jasper-software/jasper/commit/91fca092098396938830fe458f57109f0dd58a54
which was added to version 3.0.0 and causes build errors when threads are not available:

message(FATAL_ERROR "Threading support is not available.")

because JAS_ENABLE_MULTITHREADING_SUPPORT defaults to ON:
https://github.com/jasper-software/jasper/blob/version-4.2.8/CMakeLists.txt#L124

Add configure options to disable thread support when needed.

Fixes:
https://autobuild.buildroot.net/results/870/870d6adbac166b22cce217628d477b1bce538320/

---
 package/jasper/jasper.mk | 6 ++++++
 1 file changed, 6 insertions(+)
package/jasper/jasper.mk +6 -0
index 88633c9661..9ed54989e2 100644
@@ -32,6 +32,12 @@ ifeq ($(BR2_STATIC_LIBS),y)
 JASPER_CONF_OPTS += -DJAS_ENABLE_SHARED=OFF
 endif
 
+ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
+JASPER_CONF_OPTS += -DJAS_ENABLE_MULTITHREADING_SUPPORT=ON
+else
+JASPER_CONF_OPTS += -DJAS_ENABLE_MULTITHREADING_SUPPORT=OFF
+endif
+
 ifeq ($(BR2_PACKAGE_JPEG),y)
 JASPER_CONF_OPTS += -DJAS_ENABLE_LIBJPEG=ON
 JASPER_DEPENDENCIES += jpeg
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot