mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-26 05:23:31 +00:00
23 lines
846 B
Diff
23 lines
846 B
Diff
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/base/windows_gnu.rs | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/compiler/rustc_target/src/spec/base/windows_gnu.rs b/compiler/rustc_target/src/spec/base/windows_gnu.rs
|
|
index e975102..9876a4f 100644
|
|
--- a/compiler/rustc_target/src/spec/base/windows_gnu.rs
|
|
+++ b/compiler/rustc_target/src/spec/base/windows_gnu.rs
|
|
@@ -40,6 +40,8 @@ pub(crate) 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);
|