From: Debian Rust Maintainers Date: Thu, 4 Aug 2022 07:40:53 +0000 (+0100) Subject: d-rustc-windows-ssp X-Git-Tag: archive/raspbian/1.59.0+dfsg1-1_deb11u3+rpi1~1^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9361edf7ca82f9368443fcf4a36162c193ede88c;p=rustc-mozilla.git d-rustc-windows-ssp Bug: https://github.com/rust-lang/rust/issues/68973 Gbp-Pq: Name d-rustc-windows-ssp.patch --- diff --git a/compiler/rustc_target/src/spec/windows_gnu_base.rs b/compiler/rustc_target/src/spec/windows_gnu_base.rs index 35a52896f..861f590b8 100644 --- a/compiler/rustc_target/src/spec/windows_gnu_base.rs +++ b/compiler/rustc_target/src/spec/windows_gnu_base.rs @@ -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);