-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[SR-5755] AddSwift.cmake hardcodes "/usr/lib/swift/linux" into the RPATH of its shared libraries #48325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Rostepher (JIRA User), @aciidb0mb3r, @compnerd, can you think of any reason why we'd need this entry on non-Darwin systems? SR-1967 is a bigger problem, but this one seems like we should be able to just take it out. |
I don't see such an entry in executables created by SwiftPM: ``` ... |
@aciidb0mb3r SwiftPM has saner behavior here on the binaries it produces, but the swift-package binary itself looks like this:
|
That's SwiftPM's own fault. It has nothing to do with Swift's CMake configuration. Maybe I am misunderstanding what this bug is about? |
@aciidb0mb3r you're right, this bug is specifically about the value hardcoded into Swift's CMake (which I believe is used downstream by s-c-f and s-c-d as well). Filed https://bugs.swift.org/browse/SR-9357 for the swiftPM side of this. |
Can this be closed because of my pull that was merged a couple months ago? |
This has been fixed. |
Additional Detail from JIRA
md5: 6050e1240c6e06e66401384bc1368587
is duplicated by:
relates to:
Issue Description:
This mean that
CMAKE_INSTALL_PREFIX
(the--install-destdir
flag tobuild-script
) is not fully respected on Linux and it is difficult to build a relocatable swift binary.The text was updated successfully, but these errors were encountered: