This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Shared library annoyance with gcc-3_0-branch
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