git2-rs
git2-rs copied to clipboard
attempt to use pkg-config to get include path for dependencies if not provided in env
This is similar to https://github.com/alexcrichton/ssh2-rs/pull/170 and solves issue in https://github.com/rust-lang/rust/issues/69552
If dependencies include paths are not provided in environment (DEP_SSH2_INCLUDE, DEP_OPENSSL_INCLUDE and DEP_Z_INCLUDE) then the script attempts to use pkg_config to find system-provided versions in order to build libgit2.
I don't think this PR should be merged as is; please see https://github.com/alexcrichton/ssh2-rs/issues/174 wherein we're dealing with the fallout from https://github.com/alexcrichton/ssh2-rs/pull/170