]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
libjpeg-turbo: use system zlib instead of bundled copy
authorRoss Burton <ross.burton@arm.com>
Tue, 4 Aug 2026 15:44:51 +0000 (16:44 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 6 Aug 2026 10:13:16 +0000 (11:13 +0100)
The libjpegturbo library bundles a copy of libspng which in turn bundles
a copy of zlib.  We don't currently have a libspng recipe but we can
stop it bundling zlib.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-graphics/jpeg/libjpeg-turbo_3.2.0.bb

index 89504419762653cd3aad744e29639f39f5b9fb8e..7a548d4e9c6a455166b32b1724a4dd70dcd37459 100644 (file)
@@ -5,6 +5,7 @@ HOMEPAGE = "http://libjpeg-turbo.org/"
 LICENSE = "BSD-3-Clause AND IJG AND Zlib"
 LIC_FILES_CHKSUM = "file://LICENSE.md;md5=d21daef3b4b318f77062055059c72934"
 
+DEPENDS = "zlib"
 DEPENDS:append:x86-64:class-target = " nasm-native"
 DEPENDS:append:x86:class-target = " nasm-native"
 
@@ -28,6 +29,8 @@ export NASMENV = "--reproducible --debug-prefix-map=${WORKDIR}=${TARGET_DBGSRC_D
 EXTRA_OECMAKE += "-DCMAKE_SKIP_INSTALL_RPATH=ON"
 # Ensure the -fPIC options are used to avoid -native compile failures, e.g. on opensuse160
 EXTRA_OECMAKE += "-DCMAKE_POSITION_INDEPENDENT_CODE=ON"
+# Use system zlib instead of the bundled copy
+EXTRA_OECMAKE += "-DWITH_SYSTEM_ZLIB=ON"
 
 # Add nasm-native dependency consistently for all build arches is hard
 EXTRA_OECMAKE:append:class-native = " -DWITH_SIMD=False"