aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2015-06-28 19:28:28 -0700
committerSteven Fackler <[email protected]>2015-06-28 19:28:28 -0700
commitd465f6c5bb19224205f4ec1da9020cfcbd07d848 (patch)
tree6c7b96bcf4d5fc192df6f8068824e6c6b45c64ce
parentMore docs (diff)
downloadrust-openssl-d465f6c5bb19224205f4ec1da9020cfcbd07d848.tar.xz
rust-openssl-d465f6c5bb19224205f4ec1da9020cfcbd07d848.zip
Don't use pkg-config on windows
-rw-r--r--openssl-sys/build.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/openssl-sys/build.rs b/openssl-sys/build.rs
index e788af5d..8bbb0657 100644
--- a/openssl-sys/build.rs
+++ b/openssl-sys/build.rs
@@ -14,9 +14,12 @@ fn main() {
let include_dir = env::var("OPENSSL_INCLUDE_DIR").ok();
if lib_dir.is_none() && include_dir.is_none() {
- if let Ok(info) = pkg_config::find_library("openssl") {
- build_openssl_shim(&info.include_paths);
- return;
+ // rustc doesn't seem to work with pkg-config's output in mingw64
+ if !target.contains("windows") {
+ if let Ok(info) = pkg_config::find_library("openssl") {
+ build_openssl_shim(&info.include_paths);
+ return;
+ }
}
if let Some(mingw_paths) = get_mingw_in_path() {
for path in mingw_paths {