]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
libjpeg-turbo: remove redundant RUNPATH entries
authorRoss Burton <ross.burton@arm.com>
Tue, 8 Oct 2024 19:30:56 +0000 (20:30 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 11 Oct 2024 11:16:59 +0000 (12:16 +0100)
Our RPATH sanity checks currently don't check RUNPATH (patch incoming),
but the libjpeg objects are built with a RUNPATH set to ${libdir}.

RUNPATH is less of a problem than RPATH (because it is used after the
standard search), but redundant entries are still redundant so lets
remove them anyway.

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.0.1.bb

index 132d4b375aa3c359110a8282f4182554e98ffcc4..4ff4cec721b91f57645dd51eee1f44229da161af 100644 (file)
@@ -55,4 +55,9 @@ FILES:jpeg-tools = "${bindir}/*"
 DESCRIPTION:libturbojpeg = "A SIMD-accelerated JPEG codec which provides only TurboJPEG APIs"
 FILES:libturbojpeg = "${libdir}/libturbojpeg.so.*"
 
+do_install:append() {
+    # The binaries have RUNPATH=$libdir, which is redundant
+    chrpath -d ${D}/${bindir}/* ${D}${libdir}/*${SOLIBS}
+}
+
 BBCLASSEXTEND = "native nativesdk"