changeset 12925:0ccf6ba118dd

Fix test-dirent-safer link error. Correct last commit.
author Bruno Haible <bruno@clisp.org>
date Sun, 07 Mar 2010 23:26:11 +0100
parents 2f6ee74bea83
children f1b034447063
files ChangeLog modules/dirent-safer-tests modules/dirent-tests
diffstat 3 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,8 @@
 2010-03-07  Bruno Haible  <bruno@clisp.org>
 
-	Fix test-dirent link error.
-	* modules/dirent-tests (Makefile.am): Define test_dirent_LDADD.
+	Fix test-dirent-safer link error.
+	* modules/dirent-safer-tests (Makefile.am): Define
+	test_dirent_safer_LDADD.
 
 2010-03-07  Bruno Haible  <bruno@clisp.org>
 
--- a/modules/dirent-safer-tests
+++ b/modules/dirent-safer-tests
@@ -10,3 +10,6 @@
 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)
--- a/modules/dirent-tests
+++ b/modules/dirent-tests
@@ -8,4 +8,3 @@
 Makefile.am:
 TESTS += test-dirent
 check_PROGRAMS += test-dirent
-test_dirent_LDADD = $(LDADD) @LIBINTL@