https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108866
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Pali Rohár from comment #5) > There is one problem with it. I had to "hardcode" x86_64-w64-mingw32-windres > name instead of just "windres". How to declare cross compile prefix? Because > gcc somehow for "as" automatically adds it as in spec file is just "as", not > "x86_64-w64-mingw32-as". See find_a_program in gcc.cc which detects special program names and then does the transformation for them. I suspect you should be able to add windres there in a similar way as dsymutil (which IIRC is only used for darwin currently).
