Now that pkg-config 0.1.1 has been published, delegate to bailout detection to pkg-config.

Also bump version minors for publishing. :)
This commit is contained in:
Richard Diamond 2014-12-09 23:00:05 -06:00
parent 0dff5268de
commit 10e8a8f8e3
3 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
[package] [package]
name = "openssl" name = "openssl"
version = "0.2.2" version = "0.2.3"
authors = ["Steven Fackler <sfackler@gmail.com>"] authors = ["Steven Fackler <sfackler@gmail.com>"]
license = "Apache-2.0" license = "Apache-2.0"
description = "OpenSSL bindings" description = "OpenSSL bindings"

View File

@ -1,6 +1,6 @@
[package] [package]
name = "openssl-sys" name = "openssl-sys"
version = "0.2.2" version = "0.2.3"
authors = ["Alex Crichton <alex@alexcrichton.com>", authors = ["Alex Crichton <alex@alexcrichton.com>",
"Steven Fackler <sfackler@gmail.com>"] "Steven Fackler <sfackler@gmail.com>"]
license = "MIT" license = "MIT"
@ -17,7 +17,7 @@ sslv2 = []
aes_xts = [] aes_xts = []
[build-dependencies] [build-dependencies]
pkg-config = "0.1" pkg-config = "0.1.1"
[target.le32-unknown-nacl.dependencies] [target.le32-unknown-nacl.dependencies]
libressl-pnacl-sys = "2.1.0" libressl-pnacl-sys = "2.1.0"

View File

@ -5,7 +5,7 @@ use std::os;
fn main() { fn main() {
// Without hackory, pkg-config will only look for host libraries. // Without hackory, pkg-config will only look for host libraries.
// So, abandon ship if we're cross compiling. // 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() { if pkg_config::find_library("openssl").is_err() {