Shared library annoyance with gcc-3_0-branch

Mark Mitchell mark@codesourcery.com
Mon Feb 19 12:01:00 GMT 2001


>>>>> "Eric" == Eric W Biederman <ebiederm@xmission.com> writes:

    >>  It works fine.  Because you didn't link against any shared
    >> libraries, and because you didn't specify -shared-libgcc, it
    >> gets the static version of libgcc linked in.

    Eric> But --shared-libgcc is and should be the default, so you
    Eric> don't get multiple versions in the same binary.

No, it isn't. :-)

It's the default in C++, or when you say `-shared' to build a shared
library.  It is *not* the default in C when you just link a program.

We could change that -- but the current status is that you will not
get shared libgcc if you say something like:

   gcc -o test a.o b.o

That will work just as it always has.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com



More information about the Gcc mailing list