This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: `others' and static NSS
- To: Philip Blundell <Philip.Blundell@pobox.com>
- Subject: Re: `others' and static NSS
- From: Roland McGrath <roland@frob.com>
- Date: Tue, 19 May 1998 17:52:08 -0400
- Cc: libc-hacker@gnu.org
It should be simple enough.
You can process nss/function.def with:
sed -n 's/DEFINE_ENT[^(]*(\([a-z0-9_]*\),.*$/\1/p' | sort | uniq
to get the list of libraries needed. This can be done in Makerules,
referring to $(..)nss/function.def to make sure it happens as needed
(though obviously the nss subdir will have to have been built already anyway).
If you have GNU ld, even though not ELF, you can make a linker script
listing all the libnss_*.a libraries. That script could be installed as
libc.a with the actual libc.a living elsewhere (e.g. libcrt.a) as the Hurd
does it.