Merge pull request #249 from semarie/openbsd

openbsd: doesn't use `static` as it could result duplicated symbols
This commit is contained in:
Alex Crichton 2018-07-16 09:01:09 -05:00 committed by GitHub
commit ec413b2b67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ fn main() {
// OpenBSD provides compiler_rt by default, use it instead of rebuilding it from source
if target.contains("openbsd") {
println!("cargo:rustc-link-search=native=/usr/lib");
println!("cargo:rustc-link-lib=static=compiler_rt");
println!("cargo:rustc-link-lib=compiler_rt");
return;
}