瀏覽代碼

openbsd: doesn't use `static` as it could result duplicated symbols

Sébastien Marie 6 年之前
父節點
當前提交
ffffe2ed64
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      build.rs

+ 1 - 1
build.rs

@@ -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;
     }