Skip to content

Commit 69d04aa

Browse files
committed
[linux] remove absolute rpath of /usr/lib/swift/linux added to many shared libraries
This was presumably added as a backup, in case the libraries in a toolchain couldn't be found, but will not work well, so take it out.
1 parent f436b60 commit 69d04aa

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cmake/modules/AddSwift.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ function(add_swift_host_library name)
461461
INSTALL_NAME_DIR "@rpath")
462462
elseif(SWIFT_HOST_VARIANT_SDK STREQUAL LINUX)
463463
set_target_properties(${name} PROPERTIES
464-
INSTALL_RPATH "$ORIGIN:/usr/lib/swift/linux")
464+
INSTALL_RPATH "$ORIGIN")
465465
elseif(SWIFT_HOST_VARIANT_SDK STREQUAL CYGWIN)
466466
set_target_properties(${name} PROPERTIES
467467
INSTALL_RPATH "$ORIGIN:/usr/lib/swift/cygwin")

stdlib/cmake/modules/AddSwiftStdlib.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -998,7 +998,7 @@ function(_add_swift_target_library_single target name)
998998
elseif("${SWIFTLIB_SINGLE_SDK}" STREQUAL "LINUX")
999999
set_target_properties("${target}"
10001000
PROPERTIES
1001-
INSTALL_RPATH "$ORIGIN:/usr/lib/swift/linux")
1001+
INSTALL_RPATH "$ORIGIN")
10021002
elseif("${SWIFTLIB_SINGLE_SDK}" STREQUAL "CYGWIN")
10031003
set_target_properties("${target}"
10041004
PROPERTIES

tools/SourceKit/cmake/modules/AddSwiftSourceKit.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ macro(add_sourcekit_library name)
9999
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
100100
if(SOURCEKITLIB_SHARED)
101101
set_target_properties(${name} PROPERTIES BUILD_WITH_INSTALL_RPATH TRUE)
102-
set_target_properties(${name} PROPERTIES INSTALL_RPATH "$ORIGIN/../lib/swift/linux:/usr/lib/swift/linux")
102+
set_target_properties(${name} PROPERTIES INSTALL_RPATH "$ORIGIN/../lib/swift/linux")
103103
endif()
104104
endif()
105105

0 commit comments

Comments
 (0)