From: Debian Rust Maintainers Date: Thu, 14 Jul 2022 11:17:39 +0000 (+0200) Subject: d-rustc-windows-ssp X-Git-Tag: archive/raspbian/1.81.0+dfsg1-2+rpi1~1^2~8 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=dd3591a92612bb11e1142a03e13493951f6d047f;p=rustc.git d-rustc-windows-ssp Bug: https://github.com/rust-lang/rust/issues/68973 Gbp-Pq: Topic behaviour Gbp-Pq: Name d-rustc-windows-ssp.patch --- diff --git a/compiler/rustc_target/src/spec/base/windows_gnu.rs b/compiler/rustc_target/src/spec/base/windows_gnu.rs index 1357de2dad..9afee20d1e 100644 --- a/compiler/rustc_target/src/spec/base/windows_gnu.rs +++ b/compiler/rustc_target/src/spec/base/windows_gnu.rs @@ -45,6 +45,8 @@ pub fn opts() -> TargetOptions { "-lmingwex", "-luser32", "-lkernel32", + "-lssp_nonshared", + "-lssp", ]; let mut late_link_args = TargetOptions::link_args(LinkerFlavor::Gnu(Cc::No, Lld::No), mingw_libs);