about summary refs log tree commit diff
path: root/library/std
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-09-21 19:52:13 +0000
committerbors <bors@rust-lang.org>2020-09-21 19:52:13 +0000
commitfb1dc34a831688f8eca89ea22ea2eb39e881d729 (patch)
treee24f2da332ac003118a3b6cb0d867d1e61869ad3 /library/std
parentb01326ab033e41986d4a5c8b96ce4f40f3b38e30 (diff)
parentf9457fb8097f583c470192181deb28f66d64abf5 (diff)
downloadrust-fb1dc34a831688f8eca89ea22ea2eb39e881d729.tar.gz
rust-fb1dc34a831688f8eca89ea22ea2eb39e881d729.zip
Auto merge of #77003 - joshtriplett:remove-duplicate-link-libraries, r=Mark-Simulacrum
Remove duplicated library links between std and libc

The libc crate is already responsible for linking in the appropriate
libraries, and std doing the same thing results in duplicated library
names on the linker command line. Removing this duplication slightly
reduces linker time, and makes it simpler to adjust the set or order of
linked libraries in one place (such as to add static linking support).
Diffstat (limited to 'library/std')
-rw-r--r--library/std/build.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/library/std/build.rs b/library/std/build.rs
index a787e6d43fc..f2ed7552afb 100644
--- a/library/std/build.rs
+++ b/library/std/build.rs
@@ -8,10 +8,6 @@ fn main() {
             println!("cargo:rustc-link-lib=dl");
             println!("cargo:rustc-link-lib=log");
             println!("cargo:rustc-link-lib=gcc");
-        } else if !target.contains("musl") {
-            println!("cargo:rustc-link-lib=dl");
-            println!("cargo:rustc-link-lib=rt");
-            println!("cargo:rustc-link-lib=pthread");
         }
     } else if target.contains("freebsd") {
         println!("cargo:rustc-link-lib=execinfo");