[PATCH] Re: A clue for the libstdc++ problem.

H . J . Lu hjl@lucon.org
Mon Apr 2 14:13:00 GMT 2001


On Sun, Apr 01, 2001 at 10:08:41PM -0300, Alexandre Oliva wrote:
> On Apr  1, 2001, "H . J . Lu" <hjl@lucon.org> wrote:
> 
> > Can you tell me what is wrong with this patch?
> 
> Sure.  When linking C-only executables, libtool sometimes runs the
> linker directly, which causes dynamic constructors not to run.
> 

It is wrong for gcc. You do know you can have constructors in C
with gcc, don't you? If you use gcc, as CC, you cannot run the
linker directly even for C code. It is a bug in libtool if it runs
the linker directly on C code with gcc.


H.J.



More information about the Gcc mailing list