Fix link errors in tests: openat-die uses gettext-h.
[gnulib.git] / modules / dirent-safer-tests
index 2bc9593..d516d52 100644 (file)
@@ -10,3 +10,6 @@ configure.ac:
 Makefile.am:
 TESTS += test-dirent-safer
 check_PROGRAMS += test-dirent-safer
+# Link with libintl when needed. dirent-safer uses fdopendir if it is present,
+# and fdopendir indirectly depends on openat-die -> gettext-h.
+test_dirent_safer_LDADD = $(LDADD) $(LIBINTL)