summaryrefslogtreecommitdiff
path: root/resolv/Makefile
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2017-04-04 17:31:52 +0200
committerFlorian Weimer <fweimer@redhat.com>2017-04-04 20:56:24 +0200
commitc3261cdb5b739c1e814de32e40ecd712ad987cdb (patch)
treeca9f036fd939441f08503c5087141e0d72c22be7 /resolv/Makefile
parent44f28da7cab271b659551c4fe1a7d2e420803576 (diff)
resolv: Add tst-resolv-canonname
Diffstat (limited to 'resolv/Makefile')
-rw-r--r--resolv/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/resolv/Makefile b/resolv/Makefile
index 64a7872d0f..5a867b79e0 100644
--- a/resolv/Makefile
+++ b/resolv/Makefile
@@ -50,6 +50,13 @@ tests += \
tst-resolv-network \
tst-resolv-search \
+# These tests need libdl.
+ifeq (yes,$(build-shared))
+tests += \
+ tst-resolv-canonname \
+
+endif
+
# This test sends millions of packets and is rather slow.
xtests += tst-resolv-qtypes
endif
@@ -128,6 +135,8 @@ $(objpfx)tst-resolv-basic: $(objpfx)libresolv.so $(shared-thread-library)
$(objpfx)tst-resolv-network: $(objpfx)libresolv.so $(shared-thread-library)
$(objpfx)tst-resolv-qtypes: $(objpfx)libresolv.so $(shared-thread-library)
$(objpfx)tst-resolv-search: $(objpfx)libresolv.so $(shared-thread-library)
+$(objpfx)tst-resolv-canonname: \
+ $(libdl) $(objpfx)libresolv.so $(shared-thread-library)
$(objpfx)tst-ns_name: $(objpfx)libresolv.so
$(objpfx)tst-ns_name.out: tst-ns_name.data