diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs index c7c967b3e2e6..38f25bc6331d 100644 --- a/src/bootstrap/dist.rs +++ b/src/bootstrap/dist.rs @@ -208,6 +208,8 @@ fn make_win_dist( rustc_dlls.push("libgcc_s_seh-1.dll"); } + // Libraries necessary to link the windows-gnu toolchains. + // System libraries will be preferred if they are available (see #67429). let target_libs = [ //MinGW libs "libgcc.a", @@ -221,6 +223,7 @@ fn make_win_dist( "libmoldname.a", "libpthread.a", //Windows import libs + //This should contain only the set of libraries necessary to link the standard library. "libadvapi32.a", "libbcrypt.a", "libcomctl32.a",