This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Re: A clue for the libstdc++ problem.
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.