--- rustc-1.100.0-src/src/bootstrap/src/core/builder/cargo.rs 2026-11-09 23:11:55.000000000 +0100 +++ rustc-1.100.0-src/src/bootstrap/src/core/builder/cargo.rs.orig 2026-11-19 20:39:24.221313029 +0100 @@ -400,7 +400,7 @@ // - Windows, because MSVC/PDB doesn't support it // - macOS, because its linker doesn't know the flag // - Cygwin, because its linker may not support the flag - if !self.target.is_windows() && !self.target.is_apple() && !self.target.is_cygwin() + if !self.target.is_windows() && !self.target.is_apple() && !self.target.is_cygwin() && !self.target.contains("illumos") { // If we link through cc, we need the -Wl prefix. // If we don't, then we must not add it, because the linker wouldn't