We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
-latomic
1 parent 967799f commit 53c74a0Copy full SHA for 53c74a0
build.rs
@@ -28,6 +28,13 @@ fn main() {
28
let target = env::var("TARGET").unwrap();
29
println!("cargo:rustc-env=TARGET={target}");
30
31
+ // Link with `-latomic` when using vendored OpenSSL.
32
+ // https://github.com/openssl/openssl/issues/14083
33
+ // https://github.com/rusqlite/rusqlite/pull/1037/commits/3f8195a90f55ac7ac7b2ab3f098cdb4588fb7604
34
+ if cfg!(feature = "vendored-openssl") {
35
+ println!("cargo:rustc-link-lib=dylib=atomic");
36
+ }
37
+
38
// Set linker options specific to Windows MSVC.
39
let target_os = env::var("CARGO_CFG_TARGET_OS");
40
let target_env = env::var("CARGO_CFG_TARGET_ENV");
0 commit comments