Prepare for static NSS.
authordrepper <drepper>
Sat, 21 Jun 1997 02:23:00 +0000 (02:23 +0000)
committerdrepper <drepper>
Sat, 21 Jun 1997 02:23:00 +0000 (02:23 +0000)
nss/Makefile
resolv/Makefile

index 02af500..90e5521 100644 (file)
@@ -24,7 +24,8 @@ subdir        := nss
 headers                        := nss.h
 distribute             := nsswitch.h XXX-lookup.c getXXbyYY.c getXXbyYY_r.c \
                           getXXent.c getXXent_r.c databases.def \
-                          nsswitch.conf db-Makefile digits_dots.c
+                          nsswitch.conf db-Makefile digits_dots.c \
+                          function.def
 
 # This is the trivial part which goes into libc itself.
 routines               = nsswitch $(addsuffix -lookup,$(databases))
@@ -59,8 +60,11 @@ generated            += $(filter-out db-alias.c db-netgrp.c, \
                                        $(addsuffix .c,$(libnss_db-routines)))
 distribute             += db-XXX.c
 
+
+ifneq ($(build-static-nss),yes)
 libnss_files-inhibit-o = $(filter-out .so,$(object-suffixes))
 libnss_db-inhibit-o    = $(filter-out .so,$(object-suffixes))
+endif
 
 
 include ../Rules
index 4d11b4d..f48f841 100644 (file)
@@ -39,7 +39,9 @@ vpath %.c nss_dns
 
 libnss_dns-routines    := dns-host dns-network
 libnss_dns-map         := libnss_dns.map
+ifneq ($(build-static-nss),yes)
 libnss_dns-inhibit-o   = $(filter-out .so,$(object-suffixes))
+endif
 
 include ../Rules