Description: Build with install RUNPATH
 CMake builds setting RUNPATH to the build path by default; on install, RUNPATH
 is changed without rebuilding. This behavior is not suitable for reproducible
 builds, because the BuildID and RUNPATH size depend on the build path.
 .
 This patch will not be necessary since version 1.1.91.
Author: Javier Serrano Polo <javier@jasp.net>

Index: lmms-1.1.3/plugins/VstEffect/CMakeLists.txt
===================================================================
--- lmms-1.1.3.orig/plugins/VstEffect/CMakeLists.txt	2016-09-06 22:49:42.000000000 +0200
+++ lmms-1.1.3/plugins/VstEffect/CMakeLists.txt	2016-09-06 22:52:22.000000000 +0200
@@ -3,6 +3,7 @@
 INCLUDE_DIRECTORIES("${CMAKE_CURRENT_SOURCE_DIR}/../vst_base")
 LINK_DIRECTORIES("${CMAKE_CURRENT_BINARY_DIR}/../vst_base")
 LINK_LIBRARIES(-lvstbase -Wl,--enable-new-dtags)
+SET(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
 SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${PLUGIN_DIR}")
 BUILD_PLUGIN(vsteffect VstEffect.cpp VstEffectControls.cpp VstEffectControlDialog.cpp VstSubPluginFeatures.cpp VstEffect.h VstEffectControls.h VstEffectControlDialog.h VstSubPluginFeatures.h MOCFILES VstEffectControlDialog.h VstEffectControls.h EMBEDDED_RESOURCES "${CMAKE_CURRENT_SOURCE_DIR}/*.png")
 SET_TARGET_PROPERTIES(vsteffect PROPERTIES COMPILE_FLAGS "-Wno-attributes")
Index: lmms-1.1.3/plugins/vestige/CMakeLists.txt
===================================================================
--- lmms-1.1.3.orig/plugins/vestige/CMakeLists.txt	2016-09-06 22:49:42.000000000 +0200
+++ lmms-1.1.3/plugins/vestige/CMakeLists.txt	2016-09-06 22:52:03.000000000 +0200
@@ -3,6 +3,7 @@
    INCLUDE_DIRECTORIES("${CMAKE_CURRENT_SOURCE_DIR}/../vst_base")
    LINK_DIRECTORIES("${CMAKE_CURRENT_BINARY_DIR}/../vst_base")
    LINK_LIBRARIES(-lvstbase -Wl,--enable-new-dtags)
+   SET(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
    SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${PLUGIN_DIR}")
    BUILD_PLUGIN(vestige vestige.cpp vestige.h MOCFILES vestige.h EMBEDDED_RESOURCES "${CMAKE_CURRENT_SOURCE_DIR}/*.png")
    ADD_DEPENDENCIES(vestige vstbase)
