Shared library annoyance with gcc-3_0-branch

Eric W. Biederman ebiederm@xmission.com
Mon Feb 19 11:54:00 GMT 2001


Mark Mitchell <mark@codesourcery.com> writes:

> >>>>> "Eric" == Eric W Biederman <ebiederm@xmission.com> writes:
> 
>     Eric> O.k.  What happens when you take that GCC and build a binary
>     Eric> for use during the unix bootstrap.  init, /bin/sh, or
>     Eric> something called from your initial scripts.
> 
> 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.  

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

> There should be no difference for such programs.

And there is at least one school of thought that to keep size down 
practically everything in / is linked dynamically.  

Eric



More information about the Gcc mailing list