This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [patch] Fix linking ldconfig when --enable-static-nss (with ChangeLog)
- From: "Carlos O'Donell" <carlos at systemhalted dot org>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: Paul Pluzhnikov <ppluzhnikov at google dot com>, Mike Frysinger <vapier at gentoo dot org>, libc-alpha at sourceware dot org, Daniel Jacobowitz <dmj at google dot com>
- Date: Thu, 1 Mar 2012 15:57:22 -0500
- Subject: Re: [patch] Fix linking ldconfig when --enable-static-nss (with ChangeLog)
- Authentication-results: mr.google.com; spf=pass (google.com: domain of patofiero@gmail.com designates 10.236.77.102 as permitted sender) smtp.mail=patofiero@gmail.com; dkim=pass header.i=patofiero@gmail.com
- References: <20100113022746.7769A76A5E@ppluzhnikov.mtv.corp.google.com><201001131320.44826.vapier@gentoo.org><8ac60eac1001131117h61196313mf16ab24e66aadf78@mail.gmail.com><CALoOobOzHMa9QLNi8ZnkArpihxuGrUAGH0YdT8FWSFVJ6MPT0g@mail.gmail.com><CALoOobNAiYvboUJ6gcXQG+mJBiGjGm_+0Ohp8Bh+CA8E1qzcVg@mail.gmail.com><Pine.LNX.4.64.1202251814280.20932@digraph.polyomino.org.uk><CALoOobMNRGZrYH_P7ROAY_iX12YhD7OaJppvR5SY2fRq3DNVtA@mail.gmail.com><Pine.LNX.4.64.1203012039370.2578@digraph.polyomino.org.uk>
On Thu, Mar 1, 2012 at 3:42 PM, Joseph S. Myers <joseph@codesourcery.com> wrote:
> On Sat, 25 Feb 2012, Paul Pluzhnikov wrote:
>
>> The patch is much simpler than the one attached to
>> http://sourceware.org/bugzilla/show_bug.cgi?id=6528, but requires that
>> a statically-linked binary explicitly list "-lnss_files -lnss_dns
>> -lresolv" on the link line.
>>
>> I *think* Daniel's patch from PR 6528 would not require clients to do
>> that, so perhaps that's better?
>
> As I see it, Daniel's patch has the twin advantages:
>
> * It reduces the amount of code involved in supporting
> --enable-static-nss.
>
> * It makes --enable-static-nss easier to use.
>
> Thus, I'd prefer Daniel's patch. ?What do other people think?
I agree.
A cleanup *and* easier to use make Daniel's patch the best way forward.
Cheers,
Carlos.