From: Mumit K. <kh...@na...> - 2002-08-27 07:10:03
|
On Fri, 23 Aug 2002, Andris Pavenis wrote: > > > On Thu, 22 Aug 2002, Earnie Boyd wrote: > > > Collect2 doesn't build because it uses fork. Collect2 needs to be ported to > > instead use spawn functions or the CreateProcess win32 API. > > collect2 is being used for DJGPP (i[3456]86-pc-msdosdjgpp) already for a > log time. There is no fork() at all. Perhaps the same could be used > for MINGW as all needed code is already in Collect2 should be fixed to use pexecute and friends instead of using fork/execute directly. I haven't looked at the code in many years, but I did submit a patch for mingw quite some time ago. I had later retracted the patch mostly because we didn't care to have collect2 for x86-mingw target at that point, and wanted to minimize changes to the tree. However, it may be more relevant now that dwarf2 based EH is being used (this is just pure speculation -- it may still be not be needed). For the patch, see http://gcc.gnu.org/ml/gcc-bugs/1997-12/msg00401.html Horribly outdated of course. Regards, Mumit |