From c3cd87ae9dfc51a5d294af953632b82e0f990c21 Mon Sep 17 00:00:00 2001 From: Butta Date: Wed, 6 May 2020 12:19:52 +0530 Subject: [PATCH] [CMake][llbuildSwift] fix runpath for ELF platforms Remove the absolute path to the host toolchain's stdlib from libllbuildSwift.so. --- products/llbuildSwift/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/products/llbuildSwift/CMakeLists.txt b/products/llbuildSwift/CMakeLists.txt index 1e6dad1e..918bde56 100644 --- a/products/llbuildSwift/CMakeLists.txt +++ b/products/llbuildSwift/CMakeLists.txt @@ -57,6 +57,7 @@ else() swiftDispatch Foundation) if(NOT CMAKE_SYSTEM_NAME STREQUAL Windows) + target_link_options(llbuildSwift PRIVATE "SHELL:-no-toolchain-stdlib-rpath") set_target_properties(llbuildSwift PROPERTIES INSTALL_RPATH "$ORIGIN:$ORIGIN/../../$") endif()