[PATCH] D42461: [cmake] [libunwind] Call llvm_setup_rpath() when adding shared libraries.

Phabricator via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 25 20:04:25 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL323496: [cmake] [libunwind] Call llvm_setup_rpath() when adding shared libraries. (authored by dhinton, committed by ).
Herald added a subscriber: llvm-commits.

Repository:
  rL LLVM

https://reviews.llvm.org/D42461

Files:
  libunwind/trunk/src/CMakeLists.txt


Index: libunwind/trunk/src/CMakeLists.txt
===================================================================
--- libunwind/trunk/src/CMakeLists.txt
+++ libunwind/trunk/src/CMakeLists.txt
@@ -108,6 +108,9 @@
 # Build the shared library.
 if (LIBUNWIND_ENABLE_SHARED)
   add_library(unwind_shared SHARED $<TARGET_OBJECTS:unwind_objects>)
+  if(LLVM_FOUND)
+    llvm_setup_rpath(unwind_shared)
+  endif()
   target_link_libraries(unwind_shared ${libraries})
   set_target_properties(unwind_shared
                         PROPERTIES


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42461.131538.patch
Type: text/x-patch
Size: 531 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180126/d6188e3e/attachment.bin>


More information about the cfe-commits mailing list