-
Notifications
You must be signed in to change notification settings - Fork 263
[CMake] fix runpath for ELF platforms #303
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
Conversation
@briancroom, is there someone who could review this? I've had similar pulls merged recently in other Swift repos, swiftlang/swift-llbuild#670 and swiftlang/swift-corelibs-libdispatch#541. |
Hi @buttaface, @compnerd is responsible for most of the CMake in this repo, so he seems like the most likely person to be able to effectively review the change, but if he doesn’t have feedback, I think we can go ahead and merge this assuming CI results come back green! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The RPATH should be controlled by the CMake variables for it. That will ensure that the build is done with the absolute parts which of absolutely desired and essential (avoids the wrong library used during testing).
For the origin, that’s required door repackaging. I think that you should pad that flag view CMAKE_Swift_FLAGS rather than forcefully set that.
As you're well aware, CMake can't remove the default runtime library path added by the Swift compiler, only the
I don't see why, for example, Foundation does it this way too, with |
@briancroom, in the meantime, could you run the linux CI? |
@swift-ci please test |
No response forthcoming, @spevans, can you merge? |
I dont think that the issue has been resolved, the previous comments still hold. Having the conversation over 4 different PRs is not helpful. I recommend that all of them are closed off, a proper solution is discussed on the forums and then applied uniformly across all the repositories. |
Which would that be? I pointed out that you used I think it's pretty obvious your comments are ridiculous and should just be ignored, that's what I'm asking @spevans to do. |
Remove the absolute path to the host toolchain's stdlib from libXCTest.so.
Ping, this was already merged in the 5.3 release branch. @spevans, mind rerunning the CI and merging? |
@swift-ci test |
@compnerd, presumably you're okay with this pull now that it's just removing the host toolchain's absolute rpath? |
cc @compnerd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems reasonable to me.
@briancroom, anything holding this back? |
Remove the absolute path to the host toolchain's stdlib from libXCTest.so
and add.$ORIGIN
Otherwise, you see the following in the current official release for linux: