diff options
-rw-r--r-- | libcxx/lib/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libcxx/lib/CMakeLists.txt b/libcxx/lib/CMakeLists.txt index aa5ebf1568e..e7de4e3a084 100644 --- a/libcxx/lib/CMakeLists.txt +++ b/libcxx/lib/CMakeLists.txt @@ -222,6 +222,9 @@ set(LIBCXX_TARGETS) # Build the shared library. if (LIBCXX_ENABLE_SHARED) add_library(cxx_shared SHARED $<TARGET_OBJECTS:cxx_objects>) + if(LLVM_FOUND) + llvm_setup_rpath(cxx_shared) + endif() target_link_libraries(cxx_shared ${LIBCXX_LIBRARIES}) set_target_properties(cxx_shared PROPERTIES |