Unverified Commit b1b0acfe authored by BlackDex's avatar BlackDex
Browse files

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.
parent 730aaed8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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") {