@@ -23,6 +23,9 @@ inherit cmake pkgconfig github-releases
export NASMENV = "--reproducible --debug-prefix-map=${WORKDIR}=${TARGET_DBGSRC_DIR}"
+# The binaries have RUNPATH=$libdir, which is redundant
+EXTRA_OECMAKE += "-DCMAKE_SKIP_INSTALL_RPATH=ON"
+
# Add nasm-native dependency consistently for all build arches is hard
EXTRA_OECMAKE:append:class-native = " -DWITH_SIMD=False"
EXTRA_OECMAKE:append:class-nativesdk = " -DWITH_SIMD=False"
@@ -52,9 +55,4 @@ 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"
chrpath doesn't work on mingw32 binaries: | `/build/tmp/work/x86_64-nativesdk-mingw32-w64-mingw32/nativesdk-libjpeg-turbo/3.0.1/image//usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-w64-mingw32/usr/bin/cjpeg.exe' probably isn't an ELF file. | elf_open: Exec format error Instead, use CMake variable to disable RPATH and avoid the useless-rpaths QA error. Signed-off-by: Samuli Piippo <samuli.piippo@qt.io> --- meta/recipes-graphics/jpeg/libjpeg-turbo_3.0.1.bb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)