From b1b0acfe03dbb696c80d23f82dc47073db8927fc Mon Sep 17 00:00:00 2001 From: BlackDex Date: Tue, 14 Nov 2023 20:36:44 +0100 Subject: [PATCH] Remove dynamic allocation of atomic Since #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 #1645 fixed but also fixes #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. --- openssl-sys/build/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openssl-sys/build/main.rs b/openssl-sys/build/main.rs index bbee7c5c0d..692ff72508 100644 --- a/openssl-sys/build/main.rs +++ b/openssl-sys/build/main.rs @@ -130,7 +130,7 @@ fn main() { || env::var("CARGO_CFG_TARGET_OS").unwrap() == "android") && env::var("CARGO_CFG_TARGET_POINTER_WIDTH").unwrap() == "32" { - println!("cargo:rustc-link-lib=dylib=atomic"); + println!("cargo:rustc-link-lib=atomic"); } if kind == "static" && target.contains("windows") {