aboutsummaryrefslogtreecommitdiff
path: root/resolv
diff options
context:
space:
mode:
Diffstat (limited to 'resolv')
-rw-r--r--resolv/Depend1
-rw-r--r--resolv/Makefile7
2 files changed, 6 insertions, 2 deletions
diff --git a/resolv/Depend b/resolv/Depend
new file mode 100644
index 0000000000..fe673ba5ec
--- /dev/null
+++ b/resolv/Depend
@@ -0,0 +1 @@
+linuxthreads
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