Skip to content

Commit b1b0acf

Browse files
committed
Remove dynamic allocation of atomic
Since sfackler#1925 building static binaries fails because of a hardcoded `dylib`. Removing the `dylib` but still let rust search for the dependency it will still link it. This should still keep sfackler#1645 fixed but also fixes sfackler#2043. I have tested this by building Vaultwarden for both dynamically linked debian based image, and a statically linked musl/alpine based image. But are using OpenSSL v3.x.x.
1 parent 730aaed commit b1b0acf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openssl-sys/build/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ fn main() {
130130
|| env::var("CARGO_CFG_TARGET_OS").unwrap() == "android")
131131
&& env::var("CARGO_CFG_TARGET_POINTER_WIDTH").unwrap() == "32"
132132
{
133-
println!("cargo:rustc-link-lib=dylib=atomic");
133+
println!("cargo:rustc-link-lib=atomic");
134134
}
135135

136136
if kind == "static" && target.contains("windows") {

0 commit comments

Comments
 (0)