Skip to content

Commit 3a667b9

Browse files
committed
[cmake] [libunwind] Call llvm_setup_rpath() when adding shared libraries.
Clang and llvm already use llvm_setup_rpath(), so this change will help standarize rpath usage across all projects. Differential Revision: https://reviews.llvm.org/D42461 llvm-svn: 323496
1 parent e3b3b80 commit 3a667b9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libunwind/src/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ set(LIBUNWIND_TARGETS)
108108
# Build the shared library.
109109
if (LIBUNWIND_ENABLE_SHARED)
110110
add_library(unwind_shared SHARED $<TARGET_OBJECTS:unwind_objects>)
111+
if(LLVM_FOUND)
112+
llvm_setup_rpath(unwind_shared)
113+
endif()
111114
target_link_libraries(unwind_shared ${libraries})
112115
set_target_properties(unwind_shared
113116
PROPERTIES

0 commit comments

Comments
 (0)