Fix link errors in tests: openat-die uses gettext-h.
authorBruno Haible <bruno@clisp.org>
Tue, 31 May 2011 21:31:26 +0000 (23:31 +0200)
committerIan Beckwith <ianb@erislabs.net>
Thu, 9 Jun 2011 23:07:18 +0000 (00:07 +0100)
* modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
against $(LIBINTL).
* modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
against $(LIBINTL).
* modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
$(LIBINTL).
* modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
against $(LIBINTL).
* modules/linkat-tests (Makefile.am): Link test-linkat against
$(LIBINTL).
* modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
$(LIBINTL).
* modules/openat-safer-tests (Makefile.am): Link test-openat-safer
against $(LIBINTL).
* modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
* modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
$(LIBINTL).
* modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
$(LIBINTL).
* modules/utimensat-tests (Makefile.am): Link test-utimensat against
$(LIBINTL).
Reported by Tom G. Christensen <tgc@jupiterrise.com>.
(cherry picked from commit 7c886ca1ada4248c6b838d01e9e9b2158829c6b3)

12 files changed:
ChangeLog
modules/areadlinkat-tests
modules/dirent-safer-tests
modules/fdopendir-tests
modules/fdutimensat-tests
modules/linkat-tests
modules/mkfifoat-tests
modules/openat-safer-tests
modules/openat-tests
modules/readlinkat-tests
modules/symlinkat-tests
modules/utimensat-tests

index fb9c992..1114ec9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,32 @@
 2011-05-31  Bruno Haible  <bruno@clisp.org>
 
+       Fix link errors in tests: openat-die uses gettext-h.
+       * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
+       against $(LIBINTL).
+       * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
+       against $(LIBINTL).
+       * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
+       $(LIBINTL).
+       * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
+       against $(LIBINTL).
+       * modules/linkat-tests (Makefile.am): Link test-linkat against
+       $(LIBINTL).
+       * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
+       $(LIBINTL).
+       * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
+       against $(LIBINTL).
+       * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
+       test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
+       * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
+       $(LIBINTL).
+       * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
+       $(LIBINTL).
+       * modules/utimensat-tests (Makefile.am): Link test-utimensat against
+       $(LIBINTL).
+       Reported by Tom G. Christensen <tgc@jupiterrise.com>.
+
+2011-05-31  Bruno Haible  <bruno@clisp.org>
+
        Fix link errors in tests: wait-process uses gettext-h.
        * modules/nonblocking-pipe-tests (Makefile.am): Set
        test_nonblocking_pipe_main_LDADD.
index 23e5278..422ac61 100644 (file)
@@ -13,3 +13,4 @@ configure.ac:
 Makefile.am:
 TESTS += test-areadlinkat
 check_PROGRAMS += test-areadlinkat
+test_areadlinkat_LDADD = $(LDADD) @LIBINTL@
index 2bc9593..d516d52 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 openat-die -> gettext-h.
+test_dirent_safer_LDADD = $(LDADD) $(LIBINTL)
index 39575ba..bee2df7 100644 (file)
@@ -12,3 +12,4 @@ configure.ac:
 Makefile.am:
 TESTS += test-fdopendir
 check_PROGRAMS += test-fdopendir
+test_fdopendir_LDADD = $(LDADD) @LIBINTL@
index 1d107ce..48ea78d 100644 (file)
@@ -19,4 +19,4 @@ configure.ac:
 Makefile.am:
 TESTS += test-fdutimensat
 check_PROGRAMS += test-fdutimensat
-test_fdutimensat_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME)
+test_fdutimensat_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME) @LIBINTL@
index 3f2d3f0..76eb5de 100644 (file)
@@ -17,3 +17,4 @@ configure.ac:
 Makefile.am:
 TESTS += test-linkat
 check_PROGRAMS += test-linkat
+test_linkat_LDADD = $(LDADD) @LIBINTL@
index a1e33c9..8be33df 100644 (file)
@@ -13,3 +13,4 @@ configure.ac:
 Makefile.am:
 TESTS += test-mkfifoat
 check_PROGRAMS += test-mkfifoat
+test_mkfifoat_LDADD = $(LDADD) @LIBINTL@
index a33d2c6..1f0b158 100644 (file)
@@ -9,3 +9,4 @@ configure.ac:
 Makefile.am:
 TESTS += test-openat-safer
 check_PROGRAMS += test-openat-safer
+test_openat_safer_LDADD = $(LDADD) @LIBINTL@
index 959d882..250a574 100644 (file)
@@ -31,3 +31,8 @@ Makefile.am:
 TESTS += test-fchownat test-fstatat test-mkdirat test-openat test-unlinkat
 check_PROGRAMS += test-fchownat test-fstatat test-mkdirat test-openat \
   test-unlinkat
+test_fchownat_LDADD = $(LDADD) @LIBINTL@
+test_fstatat_LDADD = $(LDADD) @LIBINTL@
+test_mkdirat_LDADD = $(LDADD) @LIBINTL@
+test_openat_LDADD = $(LDADD) @LIBINTL@
+test_unlinkat_LDADD = $(LDADD) @LIBINTL@
index 96faa56..de23df8 100644 (file)
@@ -13,3 +13,4 @@ configure.ac:
 Makefile.am:
 TESTS += test-readlinkat
 check_PROGRAMS += test-readlinkat
+test_readlinkat_LDADD = $(LDADD) @LIBINTL@
index 13ae9bd..9033149 100644 (file)
@@ -12,3 +12,4 @@ configure.ac:
 Makefile.am:
 TESTS += test-symlinkat
 check_PROGRAMS += test-symlinkat
+test_symlinkat_LDADD = $(LDADD) @LIBINTL@
index 987a86a..26dbac6 100644 (file)
@@ -19,4 +19,4 @@ configure.ac:
 Makefile.am:
 TESTS += test-utimensat
 check_PROGRAMS += test-utimensat
-test_utimensat_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME)
+test_utimensat_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME) @LIBINTL@