This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/37660] [4.4 Regression] Error Building libssp, recent update
- From: "dannysmith at users dot sourceforge dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Jan 2009 04:22:17 -0000
- Subject: [Bug bootstrap/37660] [4.4 Regression] Error Building libssp, recent update
- References: <bug-37660-6183@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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