Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cargo: use features to determine how we build curl
Alpine Linux builds will fail for a `static-ssl`. Instead we must link against system openssl. We now introduce a feature set that allows to link against system ssl using `--no-default-features --features system-ssl`. For a musl system, you also must specify RUSTFLAGS="-C target-feature=-crt-static". The alternative approach is to use using a `[target.'cfg(target_env="musl")'.dependencies]` specification, that selects features based on the `target_env`. However since we are currently using the Cargo resolver 1, this does not work. We would need to switch to resolver 2. In general the feature selection is more versatile since we ask users to select the appropriate set for their platform.
- Loading branch information