Skip to content

Commit

Permalink
2012-03-23 Daniel Jacobowitz <dmj@google.com>
Browse files Browse the repository at this point in the history
	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.
  • Loading branch information
Paul Pluzhnikov committed Mar 23, 2012
1 parent 7c69cd1 commit 3ff4252
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 57 deletions.
18 changes: 18 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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]
Expand Down
6 changes: 0 additions & 6 deletions grp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 0 additions & 5 deletions inet/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 0 additions & 5 deletions login/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 0 additions & 5 deletions nscd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
16 changes: 4 additions & 12 deletions nss/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down
8 changes: 0 additions & 8 deletions posix/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
5 changes: 0 additions & 5 deletions pwd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion resolv/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
5 changes: 0 additions & 5 deletions rt/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 0 additions & 5 deletions sunrpc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3ff4252

Please sign in to comment.