------- Comment #8 from dannysmith at users dot sourceforge dot net 2009-01-19 04:22 ------- (In reply to comment #7) > Created an attachment (id=17132) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17132&action=view) [edit] > Move _ctors* and _chkstk* to import lib > > Danny, this is the approach that I think I'd like to take for Cygwin; what do > you think about doing it this way?
On mingw we would also need to copy gthr-win32.o and __main.o into implib as well. It just seems simpler to follow the logic in init_gcc_spec with the modification forced by the requirement for no-undefined-symbols when building a dll. Note that with your patch, init_gcc_spec will still link in the static libgcc when building an .exe (ie the !shared case) Danny -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37660