Skip to content
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

[5.3][CMake] fix runpath for ELF platforms #547

Merged
merged 1 commit into from Sep 2, 2020

Conversation

finagolfin
Copy link
Contributor

Remove the absolute path to the host stdlib for libswiftDispatch.so and add $ORIGIN to it and libdispatch.so.

It has been suggested to me by some Swift devs that this would be good to get in before the 5.3 release, a cherry-pick from #541. @compnerd, I can remove the $ORIGIN portions and just make this about removing the toolchain stdlib rpath if you prefer.

This should be completely safe for the 5.3 branch, as it's just removing an unused rpath and adding rpaths that are already used, in a more explicit way.

Remove the absolute path to the host stdlib for libswiftDispatch.so and add $ORIGIN
to it and libdispatch.so.
@finagolfin
Copy link
Contributor Author

@MadCoder or @drexin, would be good to get this in before the 5.3 release, has been in trunk safely for months now.

@drexin
Copy link
Member

drexin commented Sep 2, 2020

@swift-ci test

@finagolfin
Copy link
Contributor Author

Thanks, it would be good to get this and the equivalent Foundation pull in for the 5.3 release, as user executables link against them and this patch would close a security hole for that. The same XCTest and SPM pulls can wait for the 5.3.1 release, as those are holes when running the toolchain, which I presume is less serious.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants