Skip to content

Add 'static' feature to build a statically linked crate #46

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 2 commits into from
Oct 20, 2018

Conversation

imp
Copy link
Contributor

@imp imp commented Oct 19, 2018

There is a way to build statically linked crate right now, however, it requires the environment variable LIBZ_SYS_STATIC=1. This can be suboptimal when as it makes the build to not be self-contained.
This PR adds feature static that triggers the same processing as the env var.

@alexcrichton alexcrichton merged commit fc7ad50 into rust-lang:master Oct 20, 2018
@alexcrichton
Copy link
Member

Thanks!

@imp
Copy link
Contributor Author

imp commented Oct 23, 2018

Now, that this is merged, would it be possible to cut a new release with this feature present? We need to start converging other crates that depend on static libz.

@alexcrichton
Copy link
Member

Sure thing, can do!

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