diff --git a/openssl-sys/build/main.rs b/openssl-sys/build/main.rs index 909ee746a8..7122b48627 100644 --- a/openssl-sys/build/main.rs +++ b/openssl-sys/build/main.rs @@ -116,14 +116,14 @@ fn main() { } // https://github.com/openssl/openssl/pull/15086 - // if version == Version::Openssl3xx - // && kind == "static" - // && (env::var("CARGO_CFG_TARGET_OS").unwrap() == "linux" - // || env::var("CARGO_CFG_TARGET_OS").unwrap() == "android") - // && env::var("CARGO_CFG_TARGET_POINTER_WIDTH").unwrap() == "32" - // { - // println!("cargo:rustc-link-lib=dylib=atomic"); - // } + if version == Version::Openssl3xx + && kind == "static" + && (env::var("CARGO_CFG_TARGET_OS").unwrap() == "linux" + || env::var("CARGO_CFG_TARGET_OS").unwrap() == "android") + && env::var("CARGO_CFG_TARGET_POINTER_WIDTH").unwrap() == "32" + { + println!("cargo:rustc-link-lib=dylib=atomic"); + } if kind == "static" && target.contains("windows") { println!("cargo:rustc-link-lib=dylib=gdi32");