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: Paul Pluzhnikov <ppluzhnikov at google dot com>
- To: Mike Frysinger <vapier at gentoo dot org>
- Cc: libc-alpha at sourceware dot org
- Date: Sat, 11 Feb 2012 11:41:01 -0800
- Subject: Re: [patch] Fix linking ldconfig when --enable-static-nss (with ChangeLog)
- References: <20100113022746.7769A76A5E@ppluzhnikov.mtv.corp.google.com><201001131320.44826.vapier@gentoo.org> <8ac60eac1001131117h61196313mf16ab24e66aadf78@mail.gmail.com>
On Wed, Jan 13, 2010 at 11:17 AM, Paul Pluzhnikov
<ppluzhnikov@google.com> wrote:
> How about "middle ground" below?
Ping?
I am upgrading to glibc-2.15, and --enable-static-nss is still broken ;-(
>
> Thanks,
> --
> Paul Pluzhnikov
>
>
> 2010-01-13 ?Paul Pluzhnikov ?<ppluzhnikov@google.com>
>
> ? ? ? ?* elf/Makefile: Fix static NSS linkage.
>
>
> diff --git a/elf/Makefile b/elf/Makefile
> index d57c7fe..8bb7c7a 100644
> --- a/elf/Makefile
> +++ b/elf/Makefile
> @@ -160,6 +160,13 @@ install-rootsbin += ldconfig
> ?ldconfig-modules := cache readlib xmalloc xstrdup chroot_canon
> ?extra-objs ? ? += $(ldconfig-modules:=.o)
>
> +ifeq (yes,$(build-static-nss))
> +nssobjdir := $(patsubst ../$(subdir),.,$(common-objpfx)nss)
> +resolvobjdir := $(patsubst ../$(subdir),.,$(common-objpfx)resolv)
> +static-gnulib += $(nssobjdir)/libnss_files.a $(resolvobjdir)/libnss_dns.a \
> + ? ? ? ? ? ? ? ?$(resolvobjdir)/libresolv.a
> +endif
> +
> ?# To find xmalloc.c and xstrdup.c
> ?vpath %.c ../locale/programs
--
Paul Pluzhnikov