rustc/debian/patches/d-rustc-windows-ssp.patch
Fabian Grünbichler f2689c57f1 rebase patches
and drop those no longer needed

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-03-06 21:59:25 +00:00

14 lines
538 B
Diff

Bug: https://github.com/rust-lang/rust/issues/68973
--- 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);