d-windows-ssp
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Sun, 20 Dec 2020 18:52:10 +0000 (18:52 +0000)
committerXimin Luo <infinity0@debian.org>
Sun, 20 Dec 2020 18:52:10 +0000 (18:52 +0000)
Bug: https://github.com/rust-lang/rust/issues/68973s

Gbp-Pq: Name d-windows-ssp.patch

compiler/rustc_target/src/spec/windows_gnu_base.rs

index 0234ff55f011823cc070e818d3812eee84b83107..b8c410d75fb77c6b67049877c3e026280117fa9a 100644 (file)
@@ -34,6 +34,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);