diff options
Diffstat (limited to 'resolv/Makefile')
-rw-r--r-- | resolv/Makefile | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/resolv/Makefile b/resolv/Makefile index 64afbcb..fd056d0 100644 --- a/resolv/Makefile +++ b/resolv/Makefile @@ -1,4 +1,4 @@ -# Copyright (C) 1994,95,96,97,98,99,2000 Free Software Foundation, Inc. +# Copyright (C) 1994,95,96,97,98,99,2000,2001 Free Software Foundation, Inc. # This file is part of the GNU C Library. # The GNU C Library is free software; you can redistribute it and/or @@ -26,16 +26,16 @@ headers := resolv.h \ arpa/nameser.h arpa/nameser_compat.h \ sys/bitypes.h distribute := ../conf/portability.h mapv4v6addr.h mapv4v6hostent.h \ - Banner res_hconf.h res_debug.h README + Banner res_hconf.h res_debug.h README gai_misc.h ga_test.c routines := herror inet_addr inet_ntop inet_pton nsap_addr res_init \ - res_hconf res_libc + res_hconf res_libc gai_sigqueue tests = tst-aton include ../Makeconfig -extra-libs := libresolv libnss_dns +extra-libs := libresolv libanl libnss_dns extra-libs-others = $(extra-libs) libresolv-routines := gethnamaddr res_comp res_debug \ res_data res_mkquery res_query res_send \ @@ -43,6 +43,9 @@ libresolv-routines := gethnamaddr res_comp res_debug \ ns_parse ns_name ns_netint ns_ttl ns_print \ ns_samedomain +libanl-routines := gai_cancel gai_error gai_misc gai_notify gai_suspend \ + getaddrinfo_a + subdir-dirs = nss_dns vpath %.c nss_dns @@ -51,6 +54,10 @@ ifneq ($(build-static-nss),yes) libnss_dns-inhibit-o = $(filter-out .os,$(object-suffixes)) endif +ifeq (yes,$(build-shared)) +tests: $(objpfx)ga_test +endif + include ../Rules CPPFLAGS += -Dgethostbyname=res_gethostbyname \ @@ -69,3 +76,8 @@ $(objpfx)libresolv.so: $(common-objpfx)libc.so # The DNS NSS modules needs the resolver. $(objpfx)libnss_dns.so: $(objpfx)libresolv.so $(common-objpfx)libc.so + +# The asynchronous name lookup code needs the thread library. +$(objpfx)libanl.so: $(common-objpfx)libc.so $(shared-thread-library) + +$(objpfx)ga_test: $(objpfx)libanl.so $(shared-thread-library) |