This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Statically linked binary & NSS
- To: drepper at cygnus dot com (Ulrich Drepper)
- Subject: Re: Statically linked binary & NSS
- From: Lionel Cons <Lionel dot Cons at cern dot ch>
- Date: Wed, 2 Dec 1998 17:37:45 +0100 (MET)
- Cc: egcs at cygnus dot com, bug-glibc at gnu dot org, Philippe Defert <philippe dot defert at cern dot ch>
- References: <199812020930.KAA03751@mercury.cern.ch><r2yaoq8sjg.fsf@happy.cygnus.com>
Ulrich Drepper writes:
> Lionel Cons <Lionel.Cons@cern.ch> writes:
>
> > I would like to create a statically linked binary but it seems that
> > the -static flag is not enough.
>
> Using NSS and -static contradict each other. NSS always requires
> dynamic loading.
Why can't I link all the libnss_* libraries statically so that a
dynamic loading is not needed anymore? I don't see any technical
problem that would prevent this. The code calling the right routines
in the right libraries just has to be careful...
________________________________________________________
Lionel Cons http://wwwinfo.cern.ch/~cons
CERN http://www.cern.ch
Boren's Laws:
When in charge, ponder.
When in trouble, delegate.
When in doubt, mumble.