Skip to content

[CMake] Add explicit Glibc dependencies to account for "autolinking" #16401

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

Conversation

jrose-apple
Copy link
Contributor

@jrose-apple jrose-apple commented May 4, 2018

#16349 made the compiler autolink libraries more eagerly than before. This normally wouldn't affect the products we build with CMake, but when an overlay is autolinked the compiler also puts in a dummy symbol to make sure it gets linked. So now we have to link to the overlay directly.

rdar://problem/39338239

76ef276 made the compiler autolink libraries more eagerly than before.
This normally wouldn't affect the products we build with CMake, but
when an overlay is autolinked the compiler also puts in a dummy symbol
to make sure it gets linked. So now we have to link to the overlay
directly.
@jrose-apple
Copy link
Contributor Author

@davezarzycki, does this fix your build failure?

@swift-ci Please clean test Linux

@davezarzycki
Copy link
Contributor

This appears to fix it. Thanks for the quick turnaround!

@davezarzycki davezarzycki self-requested a review May 4, 2018 22:42
@jrose-apple
Copy link
Contributor Author

@swift-ci Please smoke test macOS

@jrose-apple jrose-apple merged commit 2b31ba3 into swiftlang:master May 5, 2018
@jrose-apple jrose-apple deleted the the-force-is-strong-with-this-one branch May 5, 2018 00:18
jrose-apple added a commit to jrose-apple/swift that referenced this pull request May 5, 2018
…wiftlang#16401)

76ef276 made the compiler autolink libraries more eagerly than before.
This normally wouldn't affect the products we build with CMake, but
when an overlay is autolinked the compiler also puts in a dummy symbol
to make sure it gets linked. So now we have to link to the overlay
directly.

(cherry picked from commit 2b31ba3)
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