This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: g++ -static-libgcc not working (g++ 3.0.4).


On Thu, Sep 05, 2002 at 07:06:19PM +0200, jean-frederic clere wrote:
> But that did not help because g++ puts -lgcc -lstdc++ after my:
> -Wl,"-Bstatic" -lstdc++ -lgcc -Wl,"-Bdynamic"

The libraries are searched in the order that they are listed.

> BTW why "-lgcc -lc -lgcc", something wrong in the configure of gcc?

Nope.  That's normal.  (Libraries are searched in the order that they
are listed.  libgcc creates a references to something needed from libc,
and in fulfilling that requirement, libc needs something from libgcc that
wasn't needed previously.)

-- 
I would therefore like to posit that computing's central challenge, viz. "How
not to make a mess of it," has /not/ been met.
                                                 - Edsger Dijkstra, 1930-2002


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]