From: Debian Rust Maintainers Date: Thu, 14 Jul 2022 13:17:39 +0200 Subject: d-rustc-windows-ssp Bug: https://github.com/rust-lang/rust/issues/68973 --- compiler/rustc_target/src/spec/base/windows_gnu.rs | 2 ++ 1 file changed, 2 insertions(+) Index: rust/compiler/rustc_target/src/spec/base/windows_gnu.rs =================================================================== --- rust.orig/compiler/rustc_target/src/spec/base/windows_gnu.rs +++ rust/compiler/rustc_target/src/spec/base/windows_gnu.rs @@ -42,6 +42,8 @@ pub fn opts() -> TargetOptions { "-lmsvcrt", "-luser32", "-lkernel32", + "-lssp_nonshared", + "-lssp", ]; let mut late_link_args = TargetOptions::link_args(LinkerFlavor::Gnu(Cc::No, Lld::No), mingw_libs);