Update.
authorAndreas Jaeger <aj@suse.de>
Wed, 7 Mar 2001 07:41:33 +0000 (07:41 +0000)
committerAndreas Jaeger <aj@suse.de>
Wed, 7 Mar 2001 07:41:33 +0000 (07:41 +0000)
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.

ChangeLog
resolv/Depend [new file with mode: 0644]
resolv/Makefile

index 5f8c867..d97e9be 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
 2001-03-06  Andreas Jaeger  <aj@suse.de>
 
        * sysdeps/i386/fpu/libm-test-ulps: Add some deltas.
diff --git a/resolv/Depend b/resolv/Depend
new file mode 100644 (file)
index 0000000..fe673ba
--- /dev/null
@@ -0,0 +1 @@
+linuxthreads
index fd056d0..46ca2e0 100644 (file)
@@ -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