MINGW-packages: rust: hardcodes linking libgcc, doesn't build on clang prefix

lld: error: unable to find library -lgcc_eh
lld: error: unable to find library -lgcc

It also seems to hardcode libpthread.a, don’t know if that’s necessary/desired on a clang/ucrt prefix or if it would be better off using Windows thread API directly.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 21 (13 by maintainers)

Commits related to this issue

Most upvoted comments

AFAIK rustc asks LLVM to create landing pads. I’ll try to bisect Rust because IIRC it could be built with LLD some time ago. If it doesn’t work then maybe something in LLVM/LLD has changed. This might take some time though.