diff mbox series

[meta-oe] libjxl: Turn sizeless vectors as a packageconfig option

Message ID 20240611050646.506553-1-raj.khem@gmail.com
State New
Headers show
Series [meta-oe] libjxl: Turn sizeless vectors as a packageconfig option | expand

Commit Message

Khem Raj June 11, 2024, 5:06 a.m. UTC
We need to disable this on riscv64 as it results in undefined symbols
with clang especially

libjxl/0.10.2/recipe-sysroot/usr/include/hwy/ops/rvv-inl.h:591:17: error: use
of undeclared identifier '__riscv_vsetvlmax_e8mf8'
  591 | HWY_RVV_FOREACH(HWY_RVV_LANES, Lanes, setvlmax_e, _ALL)
      |                 ^

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta-oe/recipes-multimedia/libjxl/libjxl_0.10.2.bb | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/meta-oe/recipes-multimedia/libjxl/libjxl_0.10.2.bb b/meta-oe/recipes-multimedia/libjxl/libjxl_0.10.2.bb
index eced6c7726..8df0e9a2c2 100644
--- a/meta-oe/recipes-multimedia/libjxl/libjxl_0.10.2.bb
+++ b/meta-oe/recipes-multimedia/libjxl/libjxl_0.10.2.bb
@@ -18,7 +18,6 @@  EXTRA_OECMAKE = " \
 	-DJPEGXL_ENABLE_PLUGINS=ON \
 	-DBUILD_TESTING=OFF \
 	-DJPEGXL_WARNINGS_AS_ERRORS=OFF \
-	-DJPEGXL_ENABLE_SIZELESS_VECTORS=ON \
 	-DJPEGXL_ENABLE_SJPEG=OFF \
 	-DJPEGXL_ENABLE_BENCHMARK=OFF \
 	-DJPEGXL_ENABLE_EXAMPLES=OFF \
@@ -31,9 +30,15 @@  EXTRA_OECMAKE = " \
 	-DJPEGXL_ENABLE_TOOLS=OFF \
 "
 
-PACKAGECONFIG ?= "mime gdk-pixbuf-loader"
+PACKAGECONFIG ?= "mime gdk-pixbuf-loader sizeless-vectors"
+# libjxl/0.10.2/recipe-sysroot/usr/include/hwy/ops/rvv-inl.h:591:17: error: use
+# of undeclared identifier '__riscv_vsetvlmax_e8mf8'
+#  591 | HWY_RVV_FOREACH(HWY_RVV_LANES, Lanes, setvlmax_e, _ALL)
+#      |                 ^
+PACKAGECONFIG:remove:riscv64 = "sizeless-vectors"
 PACKAGECONFIG[gdk-pixbuf-loader] = "-DJPEGXL_ENABLE_PLUGIN_GDKPIXBUF=ON,-DJPEGXL_ENABLE_PLUGIN_GDKPIXBUF=OFF,gdk-pixbuf"
 PACKAGECONFIG[gimp] = "-DJPEGXL_ENABLE_PLUGIN_GIMP210=ON,-DJPEGXL_ENABLE_PLUGIN_GIMP210=OFF,gimp"
 PACKAGECONFIG[mime] = "-DJPEGXL_ENABLE_PLUGIN_MIME=ON,-DJPEGXL_ENABLE_PLUGIN_MIME=OFF"
+PACKAGECONFIG[sizeless-vectors] = "-DJPEGXL_ENABLE_SIZELESS_VECTORS=ON,-DJPEGXL_ENABLE_SIZELESS_VECTORS=OFF"
 
 FILES:${PN} += "${libdir}/gdk-pixbuf-2.0 ${datadir}"