Skip to content

Commit

Permalink
cmake: Set rpath for loadable modules as well as shared libraries.
Browse files Browse the repository at this point in the history
This fixes a regression introduced by r285714: we weren't setting the
rpath on LLVMgold.so correctly.

Spotted by [email protected]!

Differential Revision: https://reviews.llvm.org/D27176

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288076 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
pcc committed Nov 28, 2016
1 parent 56089e7 commit f75edf0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/modules/AddLLVM.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ function(llvm_add_library name)

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})
Expand Down

0 comments on commit f75edf0

Please sign in to comment.