FIN: windows-gnu: statically link gcc_s, pthread with llvm

This commit is contained in:
Tim Neumann 2017-04-13 22:27:53 +02:00
parent f3dda17469
commit 8994277657
2 changed files with 5 additions and 0 deletions

View File

@ -265,4 +265,8 @@ fn main() {
if target.contains("windows") {
println!("cargo:rustc-link-lib=ole32");
}
if target.contains("windows-gnu") {
println!("cargo:rustc-link-lib=static-nobundle=gcc_s");
println!("cargo:rustc-link-lib=static-nobundle=pthread");
}
}

View File

@ -29,6 +29,7 @@
#![feature(link_args)]
#![feature(staged_api)]
#![feature(rustc_private)]
#![feature(static_nobundle)]
extern crate libc;
#[macro_use]