]> git.proxmox.com Git - rustc.git/blobdiff - src/liballoc_jemalloc/build.rs
Imported Upstream version 1.9.0+dfsg1
[rustc.git] / src / liballoc_jemalloc / build.rs
index c9508322a31a7d7292d14b25426b562b31d08519..5d521913b48f3b1d30ce2689d90a784ee949ef87 100644 (file)
@@ -86,6 +86,8 @@ fn main() {
         // should be good to go!
         cmd.arg("--with-jemalloc-prefix=je_");
         cmd.arg("--disable-tls");
+    } else if target.contains("dragonfly") {
+        cmd.arg("--with-jemalloc-prefix=je_");
     }
 
     if cfg!(feature = "debug-jemalloc") {
@@ -111,7 +113,7 @@ fn main() {
     println!("cargo:rustc-link-search=native={}/lib", build_dir.display());
     if target.contains("android") {
         println!("cargo:rustc-link-lib=gcc");
-    } else if !target.contains("windows") {
+    } else if !target.contains("windows") && !target.contains("musl") {
         println!("cargo:rustc-link-lib=pthread");
     }
 }