libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Don't discard -lgcc from `-lgcc -c -lgcc'


From: Gary V . Vaughan
Subject: Re: Don't discard -lgcc from `-lgcc -c -lgcc'
Date: Wed, 11 Apr 2001 18:49:43 +0100

On Tuesday 10 April 2001  9:27 pm, Alexandre Oliva wrote:
> On Apr 10, 2001, "Gary V. Vaughan" <address@hidden> wrote:
> > On Monday 09 April 2001  7:27 pm, Alexandre Oliva wrote:
> >> Unfortunately, it doesn't catch the common case of the
> >> libraries implicitly linked in by GCC, which affects our ability to
> >> create correct C++ shared libraries with g++.
> >
> > I don't see how removing some duplicated libraries will change the
> > ability of libtool to link g++ libraries.  Sure we have some
> > problems with implicit libs when linking using ld, but I thought
> > this problem was addressed by MLB?
>
> That's precisely the problem: in MLB, we explicitly link in the
> libraries gcc would have implicitly linked in, but, without my patch,
> duplicate library removal would turn `-lgcc -lc -lgcc' into `-lc
> -lgcc'.  This is wrong in case libgcc overrides symbols from libc.
> This was how the problem was first noticed.

I see.  Okay.  How about waiting until after the new duplicate removal phase 
before ading implicit libs to the link line?

Cheers,
        Gary.
-- 
  ___              _   ___   __              _         mailto: address@hidden
 / __|__ _ _ ___ _| | / / | / /_ _ _  _ __ _| |_  __ _ ___       address@hidden
| (_ / _` | '_|// / |/ /| |/ / _` | || / _` | ' \/ _` | _ \
 \___\__,_|_|\_, /|___(_)___/\__,_|\_,_\__, |_||_\__,_|//_/
home page:  /___/                      /___/                  gpg public key:
http://www.oranda.demon.co.uk           http://www.oranda.demon.co.uk/key.asc



reply via email to

[Prev in Thread] Current Thread [Next in Thread]