File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ bssl-sys = { version = "0.1.0", optional = true }
25
25
[build-dependencies ]
26
26
bindgen = { version = " 0.64.0" , optional = true , features = [" experimental" ] }
27
27
cc = " 1.0.61"
28
- openssl-src = { version = " 111 " , optional = true }
28
+ openssl-src = { version = " 300.1.2 " , optional = true , features = [ " legacy " ] }
29
29
pkg-config = " 0.3.9"
30
30
vcpkg = " 0.2.8"
31
31
Original file line number Diff line number Diff line change @@ -115,6 +115,16 @@ fn main() {
115
115
println ! ( "cargo:rustc-link-lib={}={}" , kind, lib) ;
116
116
}
117
117
118
+ // 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
+ }
127
+
118
128
if kind == "static" && target. contains ( "windows" ) {
119
129
println ! ( "cargo:rustc-link-lib=dylib=gdi32" ) ;
120
130
println ! ( "cargo:rustc-link-lib=dylib=user32" ) ;
You can’t perform that action at this time.
0 commit comments