aboutsummaryrefslogtreecommitdiff
path: root/nss/Makefile
diff options
context:
space:
mode:
authorArjun Shankar <arjun@redhat.com>2023-10-02 14:55:21 +0200
committerArjun Shankar <arjun@redhat.com>2023-10-24 12:30:59 +0200
commita7e8d0b90bc400b4d57afb01c1a54236a5c4754c (patch)
treedf1fff59376ea497ed6f95d6c2a86eae8cb693ec /nss/Makefile
parent1c40266328babd3613d0fc7928449a7b53d87c73 (diff)
downloadglibc-a7e8d0b90bc400b4d57afb01c1a54236a5c4754c.zip
glibc-a7e8d0b90bc400b4d57afb01c1a54236a5c4754c.tar.gz
glibc-a7e8d0b90bc400b4d57afb01c1a54236a5c4754c.tar.bz2
Move 'hosts' routines from 'inet' into 'nss'
The gethostby* and gethostent* routines are entry points for nss functionality. This commit moves them from the 'inet' subdirectory to 'nss'. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'nss/Makefile')
-rw-r--r--nss/Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/nss/Makefile b/nss/Makefile
index 148c6dc..d0b564a 100644
--- a/nss/Makefile
+++ b/nss/Makefile
@@ -125,6 +125,29 @@ CFLAGS-getsgnam.c += -fexceptions
CFLAGS-getsgnam_r.c += -fexceptions
endif
+# hosts routines:
+routines += \
+ gethstbyad \
+ gethstbyad_r \
+ gethstbynm \
+ gethstbynm2 \
+ gethstbynm2_r \
+ gethstbynm_r \
+ gethstent \
+ gethstent_r \
+ # routines
+
+ifeq ($(have-thread-library),yes)
+CFLAGS-gethstbyad.c += -fexceptions
+CFLAGS-gethstbyad_r.c += -fexceptions
+CFLAGS-gethstbynm.c += -fexceptions
+CFLAGS-gethstbynm_r.c += -fexceptions
+CFLAGS-gethstbynm2.c += -fexceptions
+CFLAGS-gethstbynm2_r.c += -fexceptions
+CFLAGS-gethstent.c += -fexceptions
+CFLAGS-gethstent_r.c += -fexceptions
+endif
+
# pwd routines:
routines += \
fgetpwent \
@@ -210,6 +233,7 @@ tests := \
test-netdb \
testgrp \
tst-fgetsgent_r \
+ tst-gethnm \
tst-getpw \
tst-gshadow \
tst-nss-getpwent \