From: Bruno Haible Date: Fri, 24 Dec 2021 18:43:11 +0000 (+0100) Subject: tests: Fix link errors on AIX. X-Git-Tag: v1.0~2489 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=fd03b5cc0e0417251da917805d7c4bd02856fe47;p=gnulib.git tests: Fix link errors on AIX. * modules/fnmatch-h-c++-tests (Makefile.am): Link test-fnmatch-h-c++ with $(LIB_MBRTOWC). * modules/glob-h-c++-tests (Makefile.am): Link test-glob-h-c++ with $(LIB_MBRTOWC). * modules/stdlib-c++-tests (Makefile.am): Link test-stdlib-c++ with $(GETLOADAVG_LIBS). * modules/sys_stat-c++-tests (Makefile.am): Link test-sys_stat-c++ with $(LIB_MBRTOWC). * modules/uchar-c++-tests (Makefile.am): Link test-uchar-c++ with $(LIBUNISTRING). --- diff --git a/ChangeLog b/ChangeLog index 45bc226680..5e27c022e9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,17 @@ +2021-12-24 Bruno Haible + + tests: Fix link errors on AIX. + * modules/fnmatch-h-c++-tests (Makefile.am): Link test-fnmatch-h-c++ + with $(LIB_MBRTOWC). + * modules/glob-h-c++-tests (Makefile.am): Link test-glob-h-c++ with + $(LIB_MBRTOWC). + * modules/stdlib-c++-tests (Makefile.am): Link test-stdlib-c++ with + $(GETLOADAVG_LIBS). + * modules/sys_stat-c++-tests (Makefile.am): Link test-sys_stat-c++ with + $(LIB_MBRTOWC). + * modules/uchar-c++-tests (Makefile.am): Link test-uchar-c++ with + $(LIBUNISTRING). + 2021-12-24 Bruno Haible hamt tests: Fix compilation error with AIX xlc. diff --git a/modules/fnmatch-h-c++-tests b/modules/fnmatch-h-c++-tests index 3aed079293..abae06d998 100644 --- a/modules/fnmatch-h-c++-tests +++ b/modules/fnmatch-h-c++-tests @@ -15,4 +15,5 @@ if ANSICXX TESTS += test-fnmatch-h-c++ check_PROGRAMS += test-fnmatch-h-c++ test_fnmatch_h_c___SOURCES = test-fnmatch-h-c++.cc +test_fnmatch_h_c___LDADD = $(LDADD) $(LIB_MBRTOWC) endif diff --git a/modules/glob-h-c++-tests b/modules/glob-h-c++-tests index de42019ea9..4ae96408e2 100644 --- a/modules/glob-h-c++-tests +++ b/modules/glob-h-c++-tests @@ -15,5 +15,5 @@ if ANSICXX TESTS += test-glob-h-c++ check_PROGRAMS += test-glob-h-c++ test_glob_h_c___SOURCES = test-glob-h-c++.cc -test_glob_h_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_CLOCK_GETTIME) +test_glob_h_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_CLOCK_GETTIME) $(LIB_MBRTOWC) endif diff --git a/modules/stdlib-c++-tests b/modules/stdlib-c++-tests index 1089c46ee3..465ebfedab 100644 --- a/modules/stdlib-c++-tests +++ b/modules/stdlib-c++-tests @@ -16,5 +16,5 @@ if ANSICXX TESTS += test-stdlib-c++ check_PROGRAMS += test-stdlib-c++ test_stdlib_c___SOURCES = test-stdlib-c++.cc test-stdlib-c++2.cc -test_stdlib_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_CLOCK_GETTIME) $(LIB_EACCESS) $(LIB_GETRANDOM) +test_stdlib_c___LDADD = $(LDADD) $(LIBINTL) $(GETLOADAVG_LIBS) $(LIB_CLOCK_GETTIME) $(LIB_EACCESS) $(LIB_GETRANDOM) endif diff --git a/modules/sys_stat-c++-tests b/modules/sys_stat-c++-tests index 03f0048f87..576ef07014 100644 --- a/modules/sys_stat-c++-tests +++ b/modules/sys_stat-c++-tests @@ -15,5 +15,5 @@ if ANSICXX TESTS += test-sys_stat-c++ check_PROGRAMS += test-sys_stat-c++ test_sys_stat_c___SOURCES = test-sys_stat-c++.cc -test_sys_stat_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_CLOCK_GETTIME) +test_sys_stat_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_CLOCK_GETTIME) $(LIB_MBRTOWC) endif diff --git a/modules/uchar-c++-tests b/modules/uchar-c++-tests index 2cbc3312b5..7ff4e1bf23 100644 --- a/modules/uchar-c++-tests +++ b/modules/uchar-c++-tests @@ -39,5 +39,5 @@ test_uchar_c___SOURCES = test-uchar-c++.cc if CXX_HAVE_CUCHAR test_uchar_c___SOURCES += test-uchar-c++2.cc endif -test_uchar_c___LDADD = $(LDADD) $(LIB_MBRTOWC) +test_uchar_c___LDADD = $(LDADD) $(LIBUNISTRING) $(LIB_MBRTOWC) endif