~ruther/guix-local

ref: 25e2662e7e65db2d2c3f9479a352e3507bcb46e9 guix-local/gnu/packages/patches/swift-5.7.3-sdk-path.patch -rw-r--r-- 680 bytes
25e2662e — Maxim Cournoyer gnu: dhtnet: Update to 0.0.1-6.6dd5a5e and enable natpmp support. a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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