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 db9177175b994f1d7b76604182e7767719f0e6c1..a46373f8c44a5edf007961dc1c81c5d310c97e8f 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 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)
index 8aabbd149127d6773abf1fe2ddc5a0f5ea917b63..2511f5f662e7c1ab67d18d1a038cf4457aeabc3c 100644 (file)
@@ -8,4 +8,3 @@ configure.ac:
 Makefile.am:
 TESTS += test-dirent
 check_PROGRAMS += test-dirent
-test_dirent_LDADD = $(LDADD) @LIBINTL@