summaryrefslogtreecommitdiff
path: root/libc/nscd/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libc/nscd/Makefile')
-rw-r--r--libc/nscd/Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/libc/nscd/Makefile b/libc/nscd/Makefile
index ef3ce184f..21c99321a 100644
--- a/libc/nscd/Makefile
+++ b/libc/nscd/Makefile
@@ -20,11 +20,14 @@
#
# Sub-makefile for nscd portion of the library.
#
+include ../option-groups.mak
+
subdir := nscd
-routines := nscd_getpw_r nscd_getgr_r nscd_gethst_r nscd_getai \
+routines-$(OPTION_EGLIBC_INET) += \
+ nscd_getpw_r nscd_getgr_r nscd_gethst_r nscd_getai \
nscd_initgroups nscd_getserv_r
-aux := nscd_helper
+aux-$(OPTION_EGLIBC_INET) += nscd_helper
include ../Makeconfig
@@ -40,11 +43,11 @@ nscd-modules := nscd connections pwdcache getpwnam_r getpwuid_r grpcache \
ifeq ($(have-thread-library),yes)
ifneq (yesyes,$(have-fpie)$(build-shared))
-others += nscd
+others-$(OPTION_EGLIBC_INET) += nscd
endif
-install-sbin := nscd
+install-sbin-$(OPTION_EGLIBC_INET) += nscd
-extra-objs := $(nscd-modules:=.o)
+extra-objs-$(OPTION_EGLIBC_INET) += $(nscd-modules:=.o)
endif