Fix test-dirent-safer link error. Correct last commit.
authorBruno Haible <bruno@clisp.org>
Sun, 7 Mar 2010 22:26:11 +0000 (23:26 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 7 Mar 2010 22:26:11 +0000 (23:26 +0100)
ChangeLog
modules/dirent-safer-tests
modules/dirent-tests

index db91771..a46373f 100644 (file)
--- 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>
 
index 2bc9593..172c662 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)
index 8aabbd1..2511f5f 100644 (file)
@@ -8,4 +8,3 @@ configure.ac:
 Makefile.am:
 TESTS += test-dirent
 check_PROGRAMS += test-dirent
-test_dirent_LDADD = $(LDADD) @LIBINTL@