[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
C++ tests: Fix link errors on MSVC
From: |
Bruno Haible |
Subject: |
C++ tests: Fix link errors on MSVC |
Date: |
Sun, 16 Aug 2020 12:57:21 +0200 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-186-generic; KDE/5.18.0; x86_64; ; ) |
Link errors were accidentally introduced on 2020-05-31. Most of them were
fixed on 2020-06-27, but I forgot to test the C++ tests as well.
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.
diff --git a/modules/stdio-c++-tests b/modules/stdio-c++-tests
index 05e7544..df8ba4e 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 634a2b3..1089c46 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- C++ tests: Fix link errors on MSVC,
Bruno Haible <=