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.82.0+dfsg1-2+rpi1^2~11 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b4f6466ec032c84a3f6614afa1e520fce4e57849;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 7346e42dd9..df4b4ea811 100644 --- a/compiler/rustc_target/src/spec/base/windows_gnu.rs +++ b/compiler/rustc_target/src/spec/base/windows_gnu.rs @@ -47,6 +47,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);