------- Additional Comments From dje at gcc dot gnu dot org 2005-07-01 21:44 ------- One option: have gcc/Makefile stamp-as target test "build" and output appropriate script to MS Windows BATCH file as.bat.
*) case "$build" in \ *mingw32*) echo 'XXX' > as.bat \ ... ;; *) echo '#!$(SHELL)' > as; echo 'exec $< "$$@"' >> as ; \ chmod +x as ;; \ esac esac assuming that GCC execing "as" will find as.bat. The link/copy for other directories using as$(exeext) might also cause problems. So one might need to place the mingw32 test as the outer case and separate the entire logic for ./*, ../*, and * between mingw32 and everything else. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22259