jpeg-turbo: fix install with a static only lib
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 26 Aug 2018 17:23:13 +0000 (19:23 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 2 Sep 2018 21:02:28 +0000 (23:02 +0200)
commit7f905250bf66542efa3cd4dfbbb672aa1db0ce3c
tree25fe4a384353c12f042a9768707c123f48105934
parentce359b1b4abb0cd9b2dace9a9c65204e5c36ea9a
jpeg-turbo: fix install with a static only lib

Define CMAKE_INSTALL_RPATH only if ENABLE_SHARED is set otherwise the
following error is raised when installing binaries:

CMake Error at cmake_install.cmake:73 (file):
  file RPATH_CHANGE could not write new RPATH:

    /usr/lib

  to the file:

    /home/fabrice/buildroot/output/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/bin/rdjpgcom

  No valid ELF RPATH or RUNPATH entry exists in the file;

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/jpeg-turbo/0001-fix-install-of-binaries-with-a-static-only-library.patch [new file with mode: 0644]