d-windows-ssp
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Sun, 19 Sep 2021 18:48:33 +0000 (19:48 +0100)
committerXimin Luo <infinity0@debian.org>
Sun, 19 Sep 2021 18:48:33 +0000 (19:48 +0100)
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 f556a13a5197f2a7407b5651bbbb11f7bbeb79bb..051dc170765ac6a94120e88b63e53ca82a05e57f 100644 (file)
@@ -38,6 +38,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);