Skip to content

build: build libdispatch as position independent #434

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
Dec 3, 2018

Conversation

compnerd
Copy link
Member

@compnerd compnerd commented Dec 1, 2018

When building libdispatch as a static library ensure that it is built as
a PIC library. This is implicit when building a shared library. If the
library is not built shared, we cannot statically link it on Unix
targets.

This partially resolves SR-9384!

@compnerd
Copy link
Member Author

compnerd commented Dec 1, 2018

@compnerd
Copy link
Member Author

compnerd commented Dec 1, 2018

@swift-ci please test

When building libdispatch as a static library ensure that it is built as
a PIC library.  This is implicit when building a shared library.  If the
library is not built shared, we cannot statically link it on Unix
targets.

This partially resolves SR-9384!
@compnerd
Copy link
Member Author

compnerd commented Dec 1, 2018

@swift-ci please test

@ktopley-apple ktopley-apple merged commit afa6cc3 into swiftlang:master Dec 3, 2018
@compnerd compnerd deleted the pic branch December 3, 2018 23:31
rokhinip pushed a commit that referenced this pull request Nov 5, 2021
build: build libdispatch as position independent
Signed-off-by: Kim Topley <[email protected]>
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