summaryrefslogtreecommitdiffstats
path: root/debian/patches/d-rustc-windows-ssp.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/d-rustc-windows-ssp.patch')
-rw-r--r--debian/patches/d-rustc-windows-ssp.patch8
1 files changed, 3 insertions, 5 deletions
diff --git a/debian/patches/d-rustc-windows-ssp.patch b/debian/patches/d-rustc-windows-ssp.patch
index bbf00594c..158195d05 100644
--- a/debian/patches/d-rustc-windows-ssp.patch
+++ b/debian/patches/d-rustc-windows-ssp.patch
@@ -7,16 +7,14 @@ Bug: https://github.com/rust-lang/rust/issues/68973
compiler/rustc_target/src/spec/windows_gnu_base.rs | 2 ++
1 file changed, 2 insertions(+)
-diff --git a/compiler/rustc_target/src/spec/windows_gnu_base.rs b/compiler/rustc_target/src/spec/windows_gnu_base.rs
-index d11f1f7..137f8eb 100644
--- a/compiler/rustc_target/src/spec/windows_gnu_base.rs
+++ b/compiler/rustc_target/src/spec/windows_gnu_base.rs
-@@ -41,6 +41,8 @@ pub fn opts() -> TargetOptions {
+@@ -41,6 +41,8 @@
"-lmsvcrt",
"-luser32",
"-lkernel32",
+ "-lssp_nonshared",
+ "-lssp",
];
- let mut late_link_args = TargetOptions::link_args(LinkerFlavor::Ld, mingw_libs);
- super::add_link_args(&mut late_link_args, LinkerFlavor::Gcc, mingw_libs);
+ let mut late_link_args =
+ TargetOptions::link_args(LinkerFlavor::Gnu(Cc::No, Lld::No), mingw_libs);