diff --git a/Cargo.toml b/Cargo.toml index 111cb7cb0e4bae4813c5f086c92828ee50190ed3..f4205d7c68a26599cb6f829b4228e4e7743e1617 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "openssl" -version = "0.2.2" +version = "0.2.3" authors = ["Steven Fackler "] license = "Apache-2.0" description = "OpenSSL bindings" diff --git a/openssl-sys/Cargo.toml b/openssl-sys/Cargo.toml index c434be499082a67880f7b1cca71e86ed0ef44a53..60ebc8c352d0b20b0d8db18945b28bfbef20d16f 100644 --- a/openssl-sys/Cargo.toml +++ b/openssl-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "openssl-sys" -version = "0.2.2" +version = "0.2.3" authors = ["Alex Crichton ", "Steven Fackler "] license = "MIT" @@ -17,7 +17,7 @@ sslv2 = [] aes_xts = [] [build-dependencies] -pkg-config = "0.1" +pkg-config = "0.1.1" [target.le32-unknown-nacl.dependencies] libressl-pnacl-sys = "2.1.0" diff --git a/openssl-sys/src/build.rs b/openssl-sys/src/build.rs index 0ee0dd2c12f937a5f29197eaa713243a80e2c116..ab42b15963ca5c10246b82602da41ada333daf0b 100644 --- a/openssl-sys/src/build.rs +++ b/openssl-sys/src/build.rs @@ -5,7 +5,7 @@ use std::os; fn main() { // Without hackory, pkg-config will only look for host libraries. // So, abandon ship if we're cross compiling. - if os::getenv("HOST") != os::getenv("TARGET") { return; } + if !pkg_config::target_supported() { return; } if pkg_config::find_library("openssl").is_err() {