[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:05:51 PST 2016
pcc created this revision.
pcc added a reviewer: beanz.
pcc added subscribers: thakis, llvm-commits.
Herald added a subscriber: mgorny.
This fixes a regression introduced by r285714.
Spotted by mark at chromium.org!
https://reviews.llvm.org/D27176
Files:
llvm/cmake/modules/AddLLVM.cmake
Index: llvm/cmake/modules/AddLLVM.cmake
===================================================================
--- llvm/cmake/modules/AddLLVM.cmake
+++ llvm/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.79455.patch
Type: text/x-patch
Size: 430 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161128/13b3721a/attachment.bin>
More information about the llvm-commits
mailing list