------- Comment #9 from dave dot korn dot cygwin at gmail dot com 2009-01-19 04:54 ------- (In reply to comment #8) > (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.
I just realised that I forgot --enable-threads when I configured, I'd presumably need to do the same. > 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) Ah, but nothing will be pulled in from it. However, on further thought, and specifically considering that there's no pic/non-pic difference on windows, meaning that %.o and %_s.o are completely identical, I guess I'm not worried about filling in from the static library any more. I'll roll up a new patch. cheers, DaveK -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37660