summaryrefslogtreecommitdiffstats
path: root/debian/patches/d-rustc-windows-ssp.patch
blob: 158195d051749484895cca1057beae39f4a19078 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
From: Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
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/windows_gnu_base.rs | 2 ++
 1 file changed, 2 insertions(+)

--- a/compiler/rustc_target/src/spec/windows_gnu_base.rs
+++ b/compiler/rustc_target/src/spec/windows_gnu_base.rs
@@ -41,6 +41,8 @@
         "-lmsvcrt",
         "-luser32",
         "-lkernel32",
+        "-lssp_nonshared",
+        "-lssp",
     ];
     let mut late_link_args =
         TargetOptions::link_args(LinkerFlavor::Gnu(Cc::No, Lld::No), mingw_libs);