]> granicus.if.org Git - libjpeg-turbo/commitdiff
Build: Fix regr. that nuked RPATH in Mac/iOS build
authorDRC <information@libjpeg-turbo.org>
Tue, 1 Jan 2019 20:26:48 +0000 (14:26 -0600)
committerDRC <information@libjpeg-turbo.org>
Wed, 2 Jan 2019 00:59:53 +0000 (18:59 -0600)
Caused by 950580eb0c020598a4c6c8aa46c86e31062e1ddc.  Since the code that
sets CMAKE_INSTALL_RPATH now depends on ENABLE_SHARED, that code needed
to be moved to after the point at which ENABLE_SHARED is defined.

CMakeLists.txt
ChangeLog.md

index c01ac7d048af427cb3557c2026115c700fb9159f..96a2a5da9e53741d6617b575f3bf7638e98b3717 100644 (file)
@@ -109,10 +109,6 @@ endif()
 
 include(cmakescripts/GNUInstallDirs.cmake)
 
-if(ENABLE_SHARED)
-  set(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_FULL_LIBDIR})
-endif()
-
 macro(report_directory var)
   if(CMAKE_INSTALL_${var} STREQUAL CMAKE_INSTALL_FULL_${var})
     message(STATUS "CMAKE_INSTALL_${var} = ${CMAKE_INSTALL_${var}}")
@@ -193,6 +189,10 @@ endif()
 report_option(ENABLE_SHARED "Shared libraries")
 report_option(ENABLE_STATIC "Static libraries")
 
+if(ENABLE_SHARED)
+  set(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_FULL_LIBDIR})
+endif()
+
 if(WITH_12BIT)
   set(WITH_ARITH_DEC 0)
   set(WITH_ARITH_ENC 0)
index 8c529ecd3fc5db7a7599b832321519afb1134504..4d185bff1b81b86569582d459d14e1cf1f51c236 100644 (file)
@@ -1,3 +1,16 @@
+2.0.2
+=====
+
+### Significant changes relative to 2.0.1:
+
+1. Fixed a regression introduced by 2.0.1[5] that prevented a runtime search
+path (rpath) from being embedded in the libjpeg-turbo shared libraries and
+executables for macOS and iOS.  This caused a fatal error of the form
+"dyld: Library not loaded" when attempting to use one of the executables,
+unless `DYLD_LIBRARY_PATH` was explicitly set to the location of the
+libjpeg-turbo shared libraries.
+
+
 2.0.1
 =====