This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Fix linking ldconfig when --enable-static-nss (with ChangeLog)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]