Skip to content

Commit 80a3858

Browse files
committed
test build
1 parent 4beaab3 commit 80a3858

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

openssl-sys/build/main.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,14 @@ fn main() {
116116
}
117117

118118
// https://github.com/openssl/openssl/pull/15086
119-
// if version == Version::Openssl3xx
120-
// && kind == "static"
121-
// && (env::var("CARGO_CFG_TARGET_OS").unwrap() == "linux"
122-
// || env::var("CARGO_CFG_TARGET_OS").unwrap() == "android")
123-
// && env::var("CARGO_CFG_TARGET_POINTER_WIDTH").unwrap() == "32"
124-
// {
125-
// println!("cargo:rustc-link-lib=dylib=atomic");
126-
// }
119+
if version == Version::Openssl3xx
120+
&& kind == "static"
121+
&& (env::var("CARGO_CFG_TARGET_OS").unwrap() == "linux"
122+
|| env::var("CARGO_CFG_TARGET_OS").unwrap() == "android")
123+
&& env::var("CARGO_CFG_TARGET_POINTER_WIDTH").unwrap() == "32"
124+
{
125+
println!("cargo:rustc-link-lib=dylib=atomic");
126+
}
127127

128128
if kind == "static" && target.contains("windows") {
129129
println!("cargo:rustc-link-lib=dylib=gdi32");

0 commit comments

Comments
 (0)