Author: Danny Milosavljevic <dannym@friendly-machines.com>
Date: 2025-10-20
Subject: Fix rpath for lib/swift/linux

--- a/stdlib/cmake/modules/AddSwiftStdlib.cmake
+++ b/stdlib/cmake/modules/AddSwiftStdlib.cmake
@@ -1230,7 +1230,7 @@ function(_add_swift_runtime_link_flags target relpath_to_lib_dir bootstrapping)
       list(APPEND library_search_directories "$ENV{SDKROOT}/usr/lib/swift")
   endif()

-  list(APPEND library_search_directories "${SWIFT_SDK_${sdk}_ARCH_${arch}_PATH}/usr/lib/swift")
+  list(APPEND library_search_directories "${CMAKE_INSTALL_PREFIX}/lib/swift/linux")

   if(BOOTSTRAPPING_MODE STREQUAL "CROSSCOMPILE")
     list(APPEND library_search_directories
