Unable to debug coreclr apps on Debian 8.2 (Issue dotnet/coreclr#4263)
authorMike McLaughlin <mikem@microsoft.com>
Mon, 11 Apr 2016 22:37:42 +0000 (15:37 -0700)
committerMike McLaughlin <mikem@microsoft.com>
Tue, 12 Apr 2016 00:03:24 +0000 (17:03 -0700)
Add set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE) to dbi and sos cmake files.

Commit migrated from https://github.com/dotnet/coreclr/commit/b7fa022f6cbe28737b6a0e3dfa74e2b80f71ac50

src/coreclr/src/ToolBox/SOS/Strike/CMakeLists.txt
src/coreclr/src/dlls/mscordbi/CMakeLists.txt

index 77d929d..3c1cffe 100644 (file)
@@ -1,6 +1,7 @@
 # Set the RPATH of sos so that it can find dependencies without needing to set LD_LIBRARY_PATH
 # For more information: http://www.cmake.org/Wiki/CMake_RPATH_handling.
 if (CORECLR_SET_RPATH)
+  set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
   if(CLR_CMAKE_PLATFORM_DARWIN)
     set(CMAKE_INSTALL_RPATH "@loader_path")
   else()
index 2748bdf..b8dfa71 100644 (file)
@@ -2,6 +2,7 @@
 # Set the RPATH of mscordbi so that it can find dependencies without needing to set LD_LIBRARY_PATH
 # For more information: http://www.cmake.org/Wiki/CMake_RPATH_handling.
 if(CORECLR_SET_RPATH)
+  set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
   if(CLR_CMAKE_PLATFORM_DARWIN)
     set(CMAKE_INSTALL_RPATH "@loader_path")
   else()