Skip to content

Commit

Permalink
Remove dylib from atomic linking
Browse files Browse the repository at this point in the history
The `dylib` addition breaks static binaries causing them not never be
static again, because the atomic lib is always added as a dynamic
library.

Removing the `dylib` should not be an issue, since the compiler will
either add it dynamically or statically based upon the compiler
settings.
  • Loading branch information
BlackDex committed Jun 7, 2024
1 parent 859fbc1 commit 84ac165
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmimalloc-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ fn main() {

// on armv6 we need to link with libatomic
if target_os == "linux" && target_arch == "arm" {
println!("cargo:rustc-link-lib=dylib=atomic");
println!("cargo:rustc-link-lib=atomic");
}
}

0 comments on commit 84ac165

Please sign in to comment.