]> Savannah Git Hosting - gnulib.git/commitdiff
C++ tests: Fix link errors on MSVC (regression from 2020-05-31).
authorBruno Haible <bruno@clisp.org>
Sun, 16 Aug 2020 10:53:57 +0000 (12:53 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 16 Aug 2020 10:54:42 +0000 (12:54 +0200)
* 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
modules/stdio-c++-tests
modules/stdlib-c++-tests

index 4f07248d72ba39205fd55297f9b4ad121cf2df5d..af6b5d13959630fb5147126255cfe507f0e90fd3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2020-08-16  Bruno Haible  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
 
        Don't use Autoconf quadrigraphs.
index 05e754455a6090aab24dac612e489a6e35080148..df8ba4e3653bcec2fb097a83fe30fde244d01941 100644 (file)
@@ -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
index 634a2b3c0b221e4d57b692fa186c70882dfcd23b..1089c46ee3327218793393eb7b7fb81d24fb78b1 100644 (file)
@@ -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