Skip to content

use BUILD_RPATH to make the build more portable #642

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

Merged
merged 1 commit into from
May 7, 2021

Conversation

compnerd
Copy link
Member

@compnerd compnerd commented May 7, 2021

The -rpath linker options are not portable and persist into
installation providing an attack vector. This uses CMake to control the
RPATH for testing and ensures that the paths are erased at install time.
This is more secure and portable.

The `-rpath` linker options are not portable and persist into
installation providing an attack vector.  This uses CMake to control the
RPATH for testing and ensures that the paths are erased at install time.
This is more secure and portable.
@compnerd
Copy link
Member Author

compnerd commented May 7, 2021

@swift-ci please test

Copy link
Contributor

@artemcm artemcm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@artemcm artemcm merged commit cd01355 into swiftlang:main May 7, 2021
@compnerd compnerd deleted the rpath branch May 7, 2021 22:00
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.

2 participants