summary refs log tree commit diff
path: root/resolv/Makefile
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2001-03-07 07:41:33 +0000
committerAndreas Jaeger <aj@suse.de>2001-03-07 07:41:33 +0000
commite10546cb67fe0b5366fede3661b6c15363e4f54f (patch)
tree6d0b891bf8ea0915c1c2d8f9b74d036153c0d8a1 /resolv/Makefile
parentffb555a1e44f9edca779dcb3407532f14fa6e0d1 (diff)
downloadglibc-e10546cb67fe0b5366fede3661b6c15363e4f54f.tar.gz
glibc-e10546cb67fe0b5366fede3661b6c15363e4f54f.tar.xz
glibc-e10546cb67fe0b5366fede3661b6c15363e4f54f.zip
Update.
2001-03-06  Jakub Jelinek  <jakub@redhat.com>

	* resolv/Depend: New file.
	* resolv/Makefile (extra-libs, tests): Build libanl and ga_test only
	when libpthread is built.
Diffstat (limited to 'resolv/Makefile')
-rw-r--r--resolv/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/resolv/Makefile b/resolv/Makefile
index fd056d0718..46ca2e07d1 100644
--- a/resolv/Makefile
+++ b/resolv/Makefile
@@ -35,7 +35,10 @@ tests = tst-aton
 
 include ../Makeconfig
 
-extra-libs := libresolv libanl libnss_dns
+extra-libs := libresolv libnss_dns
+ifeq ($(have-thread-library),yes)
+extra-libs += libanl
+endif
 extra-libs-others = $(extra-libs)
 libresolv-routines := gethnamaddr res_comp res_debug	\
 		      res_data res_mkquery res_query res_send		\
@@ -54,7 +57,7 @@ ifneq ($(build-static-nss),yes)
 libnss_dns-inhibit-o	= $(filter-out .os,$(object-suffixes))
 endif
 
-ifeq (yes,$(build-shared))
+ifeq (yesyes,$(build-shared)$(have-thread-library))
 tests: $(objpfx)ga_test
 endif