head 1.1; access; symbols; locks; strict; comment @# @; 1.1 date 2026.06.11.07.00.57; author wiz; state Exp; branches; next ; commitid mN7Xwg7e77gpGlJG; desc @@ 1.1 log @rust: update to 1.96.0. Packaged by he@@, jperkin@@ and pin@@ in wip. This release contains security fixes. Details for the release are at https://blog.rust-lang.org/2026/05/28/Rust-1.96.0/ @ text @$NetBSD: patch-vendor_openssl-sys-0.9.111_build_main.rs,v 1.1 2026/04/02 19:06:35 wiz Exp $ Patterned after Linux and Android, on 32-bit NetBSD ports include -latomic. Parts of this inspired by https://github.com/sfackler/rust-openssl/commit/a0a1d1d29263abb7c47fc2e58cef8dab13762a45 --- vendor/openssl-sys-0.9.112/build/main.rs.orig 2026-01-25 08:57:28.677889187 +0000 +++ vendor/openssl-sys-0.9.112/build/main.rs @@@@ -279,6 +279,14 @@@@ fn main() { println!("cargo:rustc-link-lib=atomic"); } + // Patterned of the above, make sure we include -latomic + // on ilp32 ports (yes, this only tests the "p32" part). + if env::var("CARGO_CFG_TARGET_OS").unwrap() == "netbsd" + && env::var("CARGO_CFG_TARGET_POINTER_WIDTH").unwrap() == "32" + { + println!("cargo:rustc-link-lib=atomic"); + } + if kind == "static" && target.contains("windows") { println!("cargo:rustc-link-lib=dylib=gdi32"); println!("cargo:rustc-link-lib=dylib=user32"); @