]> sourceware.org Git - glibc.git/commitdiff
2012-03-23 Daniel Jacobowitz <dmj@google.com>
authorPaul Pluzhnikov <ppluzhnikov@google.com>
Fri, 23 Mar 2012 16:47:03 +0000 (09:47 -0700)
committerPaul Pluzhnikov <ppluzhnikov@google.com>
Fri, 23 Mar 2012 16:47:03 +0000 (09:47 -0700)
Paul Pluzhnikov  <ppluzhnikov@google.com>

[BZ #6528]
* grp/Makefile (otherlibs): Don't set it.
* inet/Makefile (otherlibs): Likewise.
* login/Makefile (otherlibs): Likewise.
* nscd/Makefile (otherlibs): Likewise.
* posix/Makefile (otherlibs): Likewise.
* pwd/Makefile (otherlibs): Likewise.
* rt/Makefile (otherlibs): Likewise.
* sunrpc/Makefile (otherlibs): Likewise.
* nss/Makefile (otherlibs): Likewise.
Add libnss_files to routines and static-only-routines.
($(objpfx)getent): Remove rule.
* resolv/Makefile: Add libnss_dns and libresolv to routines and
static-only-routines.

ChangeLog
grp/Makefile
inet/Makefile
login/Makefile
nscd/Makefile
nss/Makefile
posix/Makefile
pwd/Makefile
resolv/Makefile
rt/Makefile
sunrpc/Makefile

index 6b11d54368a4ef8836da78b7ab39a7bc9f47a017..ed169157389b0fd3f90103045d6c7cb3398b796d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,21 @@
+2012-03-23  Daniel Jacobowitz  <dmj@google.com>
+       Paul Pluzhnikov  <ppluzhnikov@google.com>
+
+       [BZ #6528]
+       * grp/Makefile (otherlibs): Don't set it.
+       * inet/Makefile (otherlibs): Likewise.
+       * login/Makefile (otherlibs): Likewise.
+       * nscd/Makefile (otherlibs): Likewise.
+       * posix/Makefile (otherlibs): Likewise.
+       * pwd/Makefile (otherlibs): Likewise.
+       * rt/Makefile (otherlibs): Likewise.
+       * sunrpc/Makefile (otherlibs): Likewise.
+       * nss/Makefile (otherlibs): Likewise.
+       Add libnss_files to routines and static-only-routines.
+       ($(objpfx)getent): Remove rule.
+       * resolv/Makefile: Add libnss_dns and libresolv to routines and
+       static-only-routines.
+
 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
 
        [BZ #13892]
index b5c689effa902b0de8853e04996224d63f1303b6..127310f0de3c6958f21d7ba1dca6cc1c08423694 100644 (file)
@@ -37,12 +37,6 @@ endif
 
 include ../Rules
 
-ifeq (yes,$(build-static-nss))
-otherlibs += $(nssobjdir)/libnss_files.a $(resolvobjdir)/libnss_dns.a \
-            $(resolvobjdir)/libresolv.a
-endif
-
-
 ifeq ($(have-thread-library),yes)
 
 CFLAGS-getgrgid_r.c = -DUSE_NSCD=1 -fexceptions
index a7b8f2858da98cc9772ad63d8d43d645b378f704..80e2d7ab2eb2c9a5b1b46a2d07e2f40c7a7bf0fe 100644 (file)
@@ -91,8 +91,3 @@ endif
 ifeq ($(build-static-nss),yes)
 CFLAGS += -DSTATIC_NSS
 endif
-
-ifeq (yes,$(build-static-nss))
-otherlibs += $(nssobjdir)/libnss_files.a $(resolvobjdir)/libnss_dns.a \
-            $(resolvobjdir)/libresolv.a
-endif
index f28f007e6fe58e468cc3c176d740cdad9f4cfee7..9b6d2bb78c7e8eef33adc09f42dcc4aa31b9fb5c 100644 (file)
@@ -48,11 +48,6 @@ include ../Rules
 
 CFLAGS-getpt.c = -fexceptions
 
-ifeq (yes,$(build-static-nss))
-otherlibs += $(nssobjdir)/libnss_files.a $(resolvobjdir)/libnss_dns.a \
-            $(resolvobjdir)/libresolv.a $(common-objpfx)libc.a
-endif
-
 ifeq (yesyes,$(have-fpie)$(build-shared))
 pt_chown-cflags += $(pie-ccflag)
 endif
index 9503f539086d32cb21bdf2cb3b4b344579486183..ba052eb9deb596e36241531bb6e407ec42e436fa 100644 (file)
@@ -46,11 +46,6 @@ extra-objs = $(nscd-modules:=.o)
 
 endif
 
-ifeq (yes,$(build-static-nss))
-otherlibs += $(nssobjdir)/libnss_files.a $(resolvobjdir)/libnss_dns.a \
-            $(resolvobjdir)/libresolv.a
-endif
-
 all-nscd-modules := $(nscd-modules) selinux
 ifeq (yes,$(have-selinux))
 ifeq (yes,$(have-libaudit))
index 13accaa01d8f91fcc6110d1365b4520229c9a5a9..54d50d051c71ddc800fe6219bfba49ad4e76810d 100644 (file)
@@ -43,11 +43,6 @@ xtests                       = bug-erange
 
 include ../Makeconfig
 
-ifeq (yes,$(build-static-nss))
-otherlibs += $(nssobjdir)/libnss_files.a $(resolvobjdir)/libnss_dns.a \
-            $(resolvobjdir)/libresolv.a
-endif
-
 # Specify rules for the nss_* modules.  We have some services.
 services               := files db
 
@@ -74,19 +69,16 @@ generated           += $(filter-out db-alias.c db-netgrp.c, \
 
 install-others         += $(inst_vardbdir)/Makefile
 
-# Build static module if requested
-ifneq ($(build-static-nss),yes)
+# Build static module into libc if requested
 libnss_files-inhibit-o = $(filter-out .os,$(object-suffixes))
 libnss_db-inhibit-o    = $(filter-out .os,$(object-suffixes))
+ifeq ($(build-static-nss),yes)
+routines                += $(libnss_files-routines)
+static-only-routines    += $(libnss_files-routines)
 endif
 
 include ../Rules
 
-
-ifeq (yes,$(build-static-nss))
-$(objpfx)getent: $(objpfx)libnss_files.a
-endif
-
 ifeq (yes,$(have-selinux))
 LDLIBS-makedb          := -lselinux
 endif
index da6a325a97238ba9a0ad7a2edde1bfc0fc8a5b55..922f9c0884ebbd6522ea74bcb884e877d6e0d410 100644 (file)
@@ -112,14 +112,6 @@ generated := $(addprefix wordexp-test-result, 1 2 3 4 5 6 7 8 9 10) \
 
 include ../Rules
 
-ifeq (yes,$(build-static-nss))
-# We need it for "make check" only. We can skip them if they haven't
-# been built yet during "make".
-otherlibs += $(wildcard $(nssobjdir)/libnss_files.a \
-                       $(resolvobjdir)/libnss_dns.a \
-                       $(resolvobjdir)/libresolv.a)
-endif
-
 ifeq (no,$(cross-compiling))
 # globtest and wordexp-test currently only works with shared libraries
 ifeq (yes,$(build-shared))
index a99099c8ecd845a75b1f66bca471113308aa6850..1da4059cb7cab4a9b905f5b0872e8476579586a8 100644 (file)
@@ -39,8 +39,3 @@ CFLAGS-getpw.c = -fexceptions
 CFLAGS-fgetpwent_r.c = -D_IO_MTSAFE_IO
 
 endif
-
-ifeq (yes,$(build-static-nss))
-otherlibs += $(nssobjdir)/libnss_files.a $(resolvobjdir)/libnss_dns.a \
-             $(resolvobjdir)/libresolv.a
-endif
index d87119385ba97decb9389efe70331aa9b13febfe..4777317b17f4eba9d11ddd183516948c619cfaaa 100644 (file)
@@ -55,8 +55,10 @@ subdir-dirs = nss_dns
 vpath %.c nss_dns
 
 libnss_dns-routines    := dns-host dns-network dns-canon
-ifneq ($(build-static-nss),yes)
 libnss_dns-inhibit-o   = $(filter-out .os,$(object-suffixes))
+ifeq ($(build-static-nss),yes)
+routines                += $(libnss_dns-routines) $(libresolv-routines)
+static-only-routines    += $(libnss_dns-routines) $(libresolv-routines)
 endif
 
 ifeq (yesyes,$(build-shared)$(have-thread-library))
index 651d007aa46cc60c556e2a0e78bb8626066ade63..941c47168847a5e1b059dcd220969176483dc2a5 100644 (file)
@@ -78,8 +78,3 @@ $(tests:%=$(objpfx)%-bp): $(objpfx)librt_b.a $(bounded-thread-library)
 endif
 
 tst-mqueue7-ARGS = -- $(built-program-cmd)
-
-ifeq (yes,$(build-static-nss))
-otherlibs += $(nssobjdir)/libnss_files.a $(resolvobjdir)/libnss_dns.a \
-            $(resolvobjdir)/libresolv.a
-endif
index e0339ad77f72edfa11b389831e2f8a0f0be0ba04..48790f4da95720961c8212ec4b58fc1a53921ac9 100644 (file)
@@ -97,11 +97,6 @@ ifeq ($(have-thread-library),yes)
 xtests += thrsvc
 endif
 
-ifeq (yes,$(build-static-nss))
-otherlibs += $(nssobjdir)/libnss_files.a $(resolvobjdir)/libnss_dns.a \
-            $(resolvobjdir)/libresolv.a
-endif
-
 ifeq (no,$(cross-compiling))
 # We can only build this library if we can run the rpcgen we build.
 headers += $(rpcsvc:%.x=rpcsvc/%.h)
This page took 0.058013 seconds and 5 git commands to generate.