This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: Statically linked binary & NSS
- To: drepper@cygnus.com (Ulrich Drepper)
- Subject: Re: Statically linked binary & NSS
- From: Roland McGrath <roland@frob.com>
- Date: Wed, 2 Dec 1998 14:01:48 -0500
- Cc: Andreas Jaeger <aj@arthur.rhein-neckar.de>, GNU libc hacker <libc-hacker@gnu.org>
> Roland McGrath <roland@frob.com> writes:
>
> > Don't be silly. Static linking has its uses, though not many of them, and
> > people should be able to use it when they want to. I certainly agree that
> > it's not a priority for spending time on.
>
> Tell me about one program beside fsck which has to be linked statically?
Every sane distribution statically links their installation programs, so
you can use them to recover when libc gets completely scrod. Many things
that get put on boot floppies wind up statically linked. There are others.
> The reasons behind this are good: it allows to change the
> implementation of the library and the OS. This is very important for
> applications which should continue to run in some years.
Those are some of the good reasons why people will (and in fact do) very
rarely choose to use static linking. But there are some situations where
it is appropriate.