Fix test-dirent-safer link error. Correct last commit.
[pspp] / modules / dirent-safer-tests
index 2bc95933fdb6293d4dae2c07d28565b77aeff3e3..172c662de407de2b34a7818bf4fe323aa93205a8 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 xgetcwd -> xalloc-die -> gettext-h.
+test_dirent_safer_LDADD = $(LDADD) $(LIBINTL)