From e3d43f5a8dd5f5dcb716a30cdc98e53f48ffab8f Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 16 Aug 2020 12:53:57 +0200 Subject: [PATCH] C++ tests: Fix link errors on MSVC (regression from 2020-05-31). * modules/stdio-c++-tests (Makefile.am): Link test-stdio-c++ with $(LIB_GETRANDOM), needed for the rpl_tmpfile symbol. * modules/stdlib-c++-tests (Makefile.am): Link test-stdlib-c++ with $(LIB_GETRANDOM), needed for the mkdtemp and mkstemp symbols. --- ChangeLog | 8 ++++++++ modules/stdio-c++-tests | 2 +- modules/stdlib-c++-tests | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4f07248d72..af6b5d1395 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2020-08-16 Bruno Haible + + C++ tests: Fix link errors on MSVC (regression from 2020-05-31). + * modules/stdio-c++-tests (Makefile.am): Link test-stdio-c++ with + $(LIB_GETRANDOM), needed for the rpl_tmpfile symbol. + * modules/stdlib-c++-tests (Makefile.am): Link test-stdlib-c++ with + $(LIB_GETRANDOM), needed for the mkdtemp and mkstemp symbols. + 2020-08-16 Bruno Haible Don't use Autoconf quadrigraphs. diff --git a/modules/stdio-c++-tests b/modules/stdio-c++-tests index 05e754455a..df8ba4e365 100644 --- a/modules/stdio-c++-tests +++ b/modules/stdio-c++-tests @@ -16,5 +16,5 @@ if ANSICXX TESTS += test-stdio-c++ check_PROGRAMS += test-stdio-c++ test_stdio_c___SOURCES = test-stdio-c++.cc test-stdio-c++2.cc -test_stdio_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP) $(LIB_EACCESS) +test_stdio_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP) $(LIB_EACCESS) $(LIB_GETRANDOM) endif diff --git a/modules/stdlib-c++-tests b/modules/stdlib-c++-tests index 634a2b3c0b..1089c46ee3 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) +test_stdlib_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_CLOCK_GETTIME) $(LIB_EACCESS) $(LIB_GETRANDOM) endif -- 2.39.5