From f19a2e5a8d283487ef024e1f0dfbda063b9c8c69 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 7 Mar 2010 23:26:11 +0100 Subject: [PATCH] Fix test-dirent-safer link error. Correct last commit. --- ChangeLog | 5 +++-- modules/dirent-safer-tests | 3 +++ modules/dirent-tests | 1 - 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index db9177175b..a46373f8c4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,8 @@ 2010-03-07 Bruno Haible - 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 diff --git a/modules/dirent-safer-tests b/modules/dirent-safer-tests index 2bc95933fd..172c662de4 100644 --- a/modules/dirent-safer-tests +++ b/modules/dirent-safer-tests @@ -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) diff --git a/modules/dirent-tests b/modules/dirent-tests index 8aabbd1491..2511f5f662 100644 --- a/modules/dirent-tests +++ b/modules/dirent-tests @@ -8,4 +8,3 @@ configure.ac: Makefile.am: TESTS += test-dirent check_PROGRAMS += test-dirent -test_dirent_LDADD = $(LDADD) @LIBINTL@ -- 2.30.2