d-rustc-windows-ssp
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Thu, 14 Jul 2022 11:17:39 +0000 (13:17 +0200)
committerFabian Gruenbichler <f.gruenbichler@proxmox.com>
Mon, 5 Sep 2022 08:03:18 +0000 (09:03 +0100)
Bug: https://github.com/rust-lang/rust/issues/68973

Gbp-Pq: Name d-rustc-windows-ssp.patch

compiler/rustc_target/src/spec/windows_gnu_base.rs

index 35a52896f6fa628e6842da4b68de2029b9a59260..861f590b87a34d33137898332e5eee2afed15024 100644 (file)
@@ -36,6 +36,8 @@ pub fn opts() -> TargetOptions {
         "-lmsvcrt".to_string(),
         "-luser32".to_string(),
         "-lkernel32".to_string(),
+        "-lssp_nonshared".to_string(),
+        "-lssp".to_string(),
     ];
     late_link_args.insert(LinkerFlavor::Gcc, mingw_libs.clone());
     late_link_args.insert(LinkerFlavor::Lld(LldFlavor::Ld), mingw_libs);