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

Specify the external library we link to on Windows #25

Merged
merged 1 commit into from
Mar 29, 2020

Conversation

nagisa
Copy link
Member

@nagisa nagisa commented Mar 29, 2020

As of recently it is no longer sufficient to just build the libX.a
with the cc crate in build.rs. Due to
rust-lang/rust#65610 it is also necessary to
specify the fact of linkage in the source for it to work in all
scenarios. The most frustrating part is that it only fails when shared
libraries are in the equation, which is a comparatively rare use-case in
Rust-land.

As of recently it is no longer sufficient to just build the `libX.a`
with the cc crate in build.rs. Due to
rust-lang/rust#65610 it is also necessary to
specify the fact of linkage in the source for it to work in all
scenarios. The most frustrating part is that it only fails when shared
libraries are in the equation, which is a comparatively rare use-case in
Rust-land.
@nagisa nagisa merged commit 94ec48c into master Mar 29, 2020
@nagisa nagisa deleted the nagisa/link-name-stacker branch March 29, 2020 11:57
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.

1 participant