Bug 6528

Summary: Fixes for --enable-static-nss
Product: glibc Reporter: Daniel Jacobowitz <drow>
Component: buildAssignee: Roland McGrath <roland>
Status: RESOLVED FIXED    
Severity: normal CC: carlos, glibc-bugs, jan, pinskia, ppluzhnikov
Priority: P2 Flags: fweimer: security-
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Attachments: Patch for --enable-static-nss

Description Daniel Jacobowitz 2008-05-16 17:43:38 UTC
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.
Comment 1 Daniel Jacobowitz 2008-05-16 17:44:05 UTC
Created attachment 2740 [details]
Patch for --enable-static-nss