This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Statically linked binary & NSS


Lionel Cons <Lionel.Cons@cern.ch> writes:
>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...

Assuming NSS is "Name Service Switch: then that chooses which version of 
function(s) to _load_ based on the config file. 
It dynamic loads the appropriate library, which in turn needs the root 
executable to have the right hooks.
-- 
Nick Ing-Simmons <nik@tiuk.ti.com>
Via, but not speaking for: Texas Instruments Ltd.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]