I'll attach a patch that fixes glibc build with --enable-static-nss and makes it usable by automatically including the necessary libraries in libc.a. Otherwise compile flags for every application have to be changed to include -lnss_files -lnss_dns -lresolv or else there are link errors from any NSS use. I realize the option is not supported. Since the fix mostly deletes code I figured I'd submit it anyway. I used bugzilla despite the comment in bug 631, since the policy seems to have changed since 2005; the glibc maintainers tell people to put patches in Bugzilla now. If you'd prefer this on libc-alpha just close it and I'll post there.
Created attachment 2740 [details] Patch for --enable-static-nss
Fixed by http://sourceware.org/git/?p=glibc.git;a=commit;h=3ff4252677ff55a0dd4ded5b5cbccda25812ba12