[PATCH] D27176: cmake: Set rpath for loadable modules as well as shared libraries.

Peter Collingbourne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 28 14:09:27 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL288076: cmake: Set rpath for loadable modules as well as shared libraries. (authored by pcc).

Changed prior to commit:
  https://reviews.llvm.org/D27176?vs=79455&id=79458#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D27176

Files:
  llvm/trunk/cmake/modules/AddLLVM.cmake


Index: llvm/trunk/cmake/modules/AddLLVM.cmake
===================================================================
--- llvm/trunk/cmake/modules/AddLLVM.cmake
+++ llvm/trunk/cmake/modules/AddLLVM.cmake
@@ -412,6 +412,7 @@
 
   if(ARG_MODULE)
     add_library(${name} MODULE ${ALL_FILES})
+    llvm_setup_rpath(${name})
   elseif(ARG_SHARED)
     add_windows_version_resource_file(ALL_FILES ${ALL_FILES})
     add_library(${name} SHARED ${ALL_FILES})


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27176.79458.patch
Type: text/x-patch
Size: 448 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161128/f43ce2e3/attachment.bin>


More information about the llvm-commits mailing list