libiberty: fix running extension-less binaries on windows

Danny Smith dannysmith@clear.net.nz
Mon Nov 6 20:03:00 GMT 2006


 
> Yes, that looks OK.  I suspect we'll still have the rare exception,
> but I think the best we can do is make it as rare as possible ;-)

It works for me in  my tests too.  If you want to cover all the bases,
you could 
populate the list with PATHEXT environment varable.  By default (on
WinXP), that is
".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH"

Danny



More information about the Gcc-patches mailing list