From 8d12cf0731229ba84527b5a8651bee44c26556e1 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 3 Dec 2019 02:04:23 +0100 Subject: [PATCH] Fix link errors with --enable-threads=posix on AIX. * modules/string-c++-tests (Makefile.am): Link the test-string-c++ program with $(LIBTHREAD). * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++ program with $(LIBTHREAD). --- ChangeLog | 8 ++++++++ modules/string-c++-tests | 2 +- modules/wchar-c++-tests | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index ee10cf32dd..159f32c3b5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2019-12-02 Bruno Haible + + Fix link errors with --enable-threads=posix on AIX. + * modules/string-c++-tests (Makefile.am): Link the test-string-c++ + program with $(LIBTHREAD). + * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++ + program with $(LIBTHREAD). + 2019-12-02 Bruno Haible Fix link errors with --enable-threads=posix on AIX. diff --git a/modules/string-c++-tests b/modules/string-c++-tests index 2f7e23ca9d..bd813bd892 100644 --- a/modules/string-c++-tests +++ b/modules/string-c++-tests @@ -16,5 +16,5 @@ if ANSICXX TESTS += test-string-c++ check_PROGRAMS += test-string-c++ test_string_c___SOURCES = test-string-c++.cc test-string-c++2.cc -test_string_c___LDADD = $(LDADD) $(LIBINTL) +test_string_c___LDADD = $(LDADD) $(LIBINTL) $(LIBTHREAD) endif diff --git a/modules/wchar-c++-tests b/modules/wchar-c++-tests index efc9c2ec35..cd898e2cbc 100644 --- a/modules/wchar-c++-tests +++ b/modules/wchar-c++-tests @@ -15,5 +15,5 @@ if ANSICXX TESTS += test-wchar-c++ check_PROGRAMS += test-wchar-c++ test_wchar_c___SOURCES = test-wchar-c++.cc -test_wchar_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP) $(LIB_EACCESS) +test_wchar_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP) $(LIB_EACCESS) $(LIBTHREAD) endif -- 2.39.5