about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniil Belov <70999565+BelovDV@users.noreply.github.com>2022-12-07 13:13:58 +0300
committerDaniil Belov <70999565+BelovDV@users.noreply.github.com>2022-12-07 13:13:58 +0300
commita9cf163c08136be23efab4ee5ed9649ad7e6c89c (patch)
tree4989bcb0af63d47f601dd991566bf5d4106333ce
parentec28f5338b8e54fa8ae3c18bf101c809c337f1f5 (diff)
downloadrust-a9cf163c08136be23efab4ee5ed9649ad7e6c89c.tar.gz
rust-a9cf163c08136be23efab4ee5ed9649ad7e6c89c.zip
fix: remove hack from link.rs (moved to libc)
-rw-r--r--compiler/rustc_codegen_ssa/src/back/link.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/link.rs b/compiler/rustc_codegen_ssa/src/back/link.rs
index 7cb4f5503a1..540f15c89e9 100644
--- a/compiler/rustc_codegen_ssa/src/back/link.rs
+++ b/compiler/rustc_codegen_ssa/src/back/link.rs
@@ -2352,15 +2352,6 @@ fn add_native_libs_from_crate(
                                 &search_paths.get_or_init(|| archive_search_paths(sess)),
                             );
                         } else {
-                            // HACK/FIXME: Fixup a circular dependency between libgcc and libc
-                            // with glibc. This logic should be moved to the libc crate.
-                            if cnum != LOCAL_CRATE
-                                && sess.target.os == "linux"
-                                && sess.target.env == "gnu"
-                                && name == "c"
-                            {
-                                cmd.link_staticlib("gcc", false);
-                            }
                             cmd.link_staticlib(name, verbatim)
                         }
                     }