--- texk/xdvik/tests/Makefile.am.orig	2019-07-27 23:56:27 UTC
+++ texk/xdvik/tests/Makefile.am
@@ -22,10 +22,16 @@ run_tests_SOURCES = \
 
 $(run_tests_OBJECTS): ../libxdvi.a $(common_dependencies)
 
-LDADD = ../libxdvi.a $(common_ldadd)
+LDADD = ../libxdvi.a $(common_ldadd) $(FREETYPE2_LIBS) $(ZLIB_LIBS)
 
 ../libxdvi.a: $(libxdvi_dependencies)
 	cd .. && $(MAKE) $(AM_MAKEFLAGS) libxdvi.a
+
+## Rebuild libfreetype
+@FREETYPE2_RULE@
+
+## Rebuild libz
+@ZLIB_RULE@
 
 ## Not used
 ##
