Skip to content

Commit

Permalink
test build
Browse files Browse the repository at this point in the history
  • Loading branch information
amousset committed Jul 16, 2023
1 parent 4beaab3 commit 80a3858
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions openssl-sys/build/main.rs
Expand Up @@ -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");
Expand Down

0 comments on commit 80a3858

Please sign in to comment.