Bug 6528 - Fixes for --enable-static-nss
Summary: Fixes for --enable-static-nss
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: build (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Roland McGrath
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-16 17:43 UTC by Daniel Jacobowitz
Modified: 2014-07-03 11:31 UTC (History)
5 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments
Patch for --enable-static-nss (1.92 KB, patch)
2008-05-16 17:44 UTC, Daniel Jacobowitz
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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