aboutsummaryrefslogtreecommitdiff
path: root/openssl-sys/build.rs
diff options
context:
space:
mode:
authorInokentiy Babushkin <[email protected]>2017-07-17 20:29:35 +0200
committerInokentiy Babushkin <[email protected]>2017-07-17 20:29:35 +0200
commit453e641aa68dedfdd6fd490e75e1ab5c718c603f (patch)
tree433d23095f816037cdb2ba02c3e59c0bbec8b01f /openssl-sys/build.rs
parentMerge pull request #664 from sfackler/libressl-260 (diff)
downloadrust-openssl-453e641aa68dedfdd6fd490e75e1ab5c718c603f.tar.xz
rust-openssl-453e641aa68dedfdd6fd490e75e1ab5c718c603f.zip
Support for LibreSSL 2.5.5
Diffstat (limited to 'openssl-sys/build.rs')
-rw-r--r--openssl-sys/build.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/openssl-sys/build.rs b/openssl-sys/build.rs
index 41f2329f..2f1877b4 100644
--- a/openssl-sys/build.rs
+++ b/openssl-sys/build.rs
@@ -264,6 +264,8 @@ fn validate_headers(include_dirs: &[PathBuf]) -> Version {
RUST_LIBRESSL_NEW
#elif LIBRESSL_VERSION_NUMBER >= 0x20600000
RUST_LIBRESSL_260
+#elif LIBRESSL_VERSION_NUMBER >= 0x20505000
+RUST_LIBRESSL_255
#elif LIBRESSL_VERSION_NUMBER >= 0x20504000
RUST_LIBRESSL_254
#elif LIBRESSL_VERSION_NUMBER >= 0x20503000
@@ -378,6 +380,12 @@ See rust-openssl README for more information:
println!("cargo:libressl=true");
println!("cargo:version=101");
Version::Libressl
+ } else if expanded.contains("RUST_LIBRESSL_255") {
+ println!("cargo:rustc-cfg=libressl");
+ println!("cargo:rustc-cfg=libressl255");
+ println!("cargo:libressl=true");
+ println!("cargo:version=101");
+ Version::Libressl
} else if expanded.contains("RUST_LIBRESSL_260") {
println!("cargo:rustc-cfg=libressl");
println!("cargo:rustc-cfg=libressl260");