+2022-09-04 Bruno Haible <bruno@clisp.org>
+
+ Fix various test link errors on MSVC.
+ * modules/crypto/gc-arcfour-tests (Makefile.am): Link test-gc-arcfour
+ with $(LIB_GETRANDOM).
+ * modules/crypto/gc-arctwo-tests (Makefile.am): Link test-gc-arctwo with
+ $(LIB_GETRANDOM).
+ * modules/crypto/gc-des-tests (Makefile.am): Link test-gc-des with
+ $(LIB_GETRANDOM).
+ * modules/crypto/gc-hmac-md5-tests (Makefile.am): Link test-gc-hmac-md5
+ with $(LIB_GETRANDOM).
+ * modules/crypto/gc-hmac-sha1-tests (Makefile.am): Link
+ test-gc-hmac-sha1 with $(LIB_GETRANDOM).
+ * modules/crypto/gc-hmac-sha256-tests (Makefile.am): Link
+ test-gc-hmac-sha256 with $(LIB_GETRANDOM).
+ * modules/crypto/gc-hmac-sha512-tests (Makefile.am): Link
+ test-gc-hmac-sha512 with $(LIB_GETRANDOM).
+ * modules/crypto/gc-md2-tests (Makefile.am): Link test-gc-md2 with
+ $(LIB_GETRANDOM).
+ * modules/crypto/gc-md4-tests (Makefile.am): Link test-gc-md4 with
+ $(LIB_GETRANDOM).
+ * modules/crypto/gc-md5-tests (Makefile.am): Link test-gc-md5 with
+ $(LIB_GETRANDOM).
+ * modules/crypto/gc-pbkdf2-tests (Makefile.am): Link test-gc-pbkdf2 with
+ $(LIB_GETRANDOM).
+ * modules/crypto/gc-pbkdf2-sha1-tests (Makefile.am): Link
+ test-gc-pbkdf2-sha1 with $(LIB_GETRANDOM).
+ * modules/crypto/gc-rijndael-tests (Makefile.am): Link test-gc-rijndael
+ with $(LIB_GETRANDOM).
+ * modules/crypto/gc-sha1-tests (Makefile.am): Link test-gc-sha1 with
+ $(LIB_GETRANDOM).
+ * modules/crypto/gc-sha256-tests (Makefile.am): Link test-gc-sha256 with
+ $(LIB_GETRANDOM).
+ * modules/crypto/gc-sha512-tests (Makefile.am): Link test-gc-sha512 with
+ $(LIB_GETRANDOM).
+ * modules/crypto/gc-sm3-tests (Makefile.am): Link test-gc-sm3 with
+ $(LIB_GETRANDOM).
+ * modules/sys_stat-c++-tests (Makefile.am): Link test-sys_stat-c++ with
+ $(LIB_GETRANDOM).
+ * modules/unistd-c++-tests (Makefile.am): Link test-unistd-c++ with
+ $(LIB_GETRANDOM).
+
2022-09-04 Bruno Haible <bruno@clisp.org>
count-leading-zeros: Fix a link error on 32-bit MSVC and a test failure.
Makefile.am:
TESTS += test-gc-arcfour
check_PROGRAMS += test-gc-arcfour
+test_gc_arcfour_LDADD = $(LDADD) $(LIB_GETRANDOM)
Makefile.am:
TESTS += test-gc-arctwo
check_PROGRAMS += test-gc-arctwo
+test_gc_arctwo_LDADD = $(LDADD) $(LIB_GETRANDOM)
Makefile.am:
TESTS += test-gc-des
check_PROGRAMS += test-gc-des
-test_gc_des_LDADD = $(LDADD) @LIB_CRYPTO@
+test_gc_des_LDADD = $(LDADD) @LIB_CRYPTO@ $(LIB_GETRANDOM)
Makefile.am:
TESTS += test-gc-hmac-md5
check_PROGRAMS += test-gc-hmac-md5
-test_gc_hmac_md5_LDADD = $(LDADD) @LIB_CRYPTO@
+test_gc_hmac_md5_LDADD = $(LDADD) @LIB_CRYPTO@ $(LIB_GETRANDOM)
Makefile.am:
TESTS += test-gc-hmac-sha1
check_PROGRAMS += test-gc-hmac-sha1
-test_gc_hmac_sha1_LDADD = $(LDADD) @LIB_CRYPTO@
+test_gc_hmac_sha1_LDADD = $(LDADD) @LIB_CRYPTO@ $(LIB_GETRANDOM)
Makefile.am:
TESTS += test-gc-hmac-sha256
check_PROGRAMS += test-gc-hmac-sha256
-test_gc_hmac_sha256_LDADD = $(LDADD) @LIB_CRYPTO@
+test_gc_hmac_sha256_LDADD = $(LDADD) @LIB_CRYPTO@ $(LIB_GETRANDOM)
Makefile.am:
TESTS += test-gc-hmac-sha512
check_PROGRAMS += test-gc-hmac-sha512
-test_gc_hmac_sha512_LDADD = $(LDADD) @LIB_CRYPTO@
+test_gc_hmac_sha512_LDADD = $(LDADD) @LIB_CRYPTO@ $(LIB_GETRANDOM)
Makefile.am:
TESTS += test-gc-md2
check_PROGRAMS += test-gc-md2
-test_gc_md2_LDADD = $(LDADD) @LIB_CRYPTO@
+test_gc_md2_LDADD = $(LDADD) @LIB_CRYPTO@ $(LIB_GETRANDOM)
Makefile.am:
TESTS += test-gc-md4
check_PROGRAMS += test-gc-md4
-test_gc_md4_LDADD = $(LDADD) @LIB_CRYPTO@
+test_gc_md4_LDADD = $(LDADD) @LIB_CRYPTO@ $(LIB_GETRANDOM)
Makefile.am:
TESTS += test-gc-md5
check_PROGRAMS += test-gc-md5
-test_gc_md5_LDADD = $(LDADD) @LIB_CRYPTO@
+test_gc_md5_LDADD = $(LDADD) @LIB_CRYPTO@ $(LIB_GETRANDOM)
Makefile.am:
TESTS += test-gc-pbkdf2-sha1
check_PROGRAMS += test-gc-pbkdf2-sha1
-test_gc_pbkdf2_sha1_LDADD = $(LDADD) @LIB_CRYPTO@
+test_gc_pbkdf2_sha1_LDADD = $(LDADD) @LIB_CRYPTO@ $(LIB_GETRANDOM)
Makefile.am:
TESTS += test-gc-pbkdf2
check_PROGRAMS += test-gc-pbkdf2
-test_gc_pbkdf2_LDADD = $(LDADD) @LIB_CRYPTO@
+test_gc_pbkdf2_LDADD = $(LDADD) @LIB_CRYPTO@ $(LIB_GETRANDOM)
Makefile.am:
TESTS += test-gc-rijndael
check_PROGRAMS += test-gc-rijndael
-test_gc_rijndael_LDADD = $(LDADD) @LIB_CRYPTO@
+test_gc_rijndael_LDADD = $(LDADD) @LIB_CRYPTO@ $(LIB_GETRANDOM)
Makefile.am:
TESTS += test-gc-sha1
check_PROGRAMS += test-gc-sha1
-test_gc_sha1_LDADD = $(LDADD) @LIB_CRYPTO@
+test_gc_sha1_LDADD = $(LDADD) @LIB_CRYPTO@ $(LIB_GETRANDOM)
Makefile.am:
TESTS += test-gc-sha256
check_PROGRAMS += test-gc-sha256
-test_gc_sha256_LDADD = $(LDADD) @LIB_CRYPTO@
+test_gc_sha256_LDADD = $(LDADD) @LIB_CRYPTO@ $(LIB_GETRANDOM)
Makefile.am:
TESTS += test-gc-sha512
check_PROGRAMS += test-gc-sha512
-test_gc_sha512_LDADD = $(LDADD) @LIB_CRYPTO@
+test_gc_sha512_LDADD = $(LDADD) @LIB_CRYPTO@ $(LIB_GETRANDOM)
Makefile.am:
TESTS += test-gc-sm3
check_PROGRAMS += test-gc-sm3
-test_gc_sm3_LDADD = $(LDADD) @LIB_CRYPTO@
+test_gc_sm3_LDADD = $(LDADD) @LIB_CRYPTO@ $(LIB_GETRANDOM)
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) $(LIB_MBRTOWC)
+test_sys_stat_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_CLOCK_GETTIME) $(LIB_MBRTOWC) $(LIB_GETRANDOM)
endif
TESTS += test-unistd-c++
check_PROGRAMS += test-unistd-c++
test_unistd_c___SOURCES = test-unistd-c++.cc
-test_unistd_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_CLOCK_GETTIME) $(LIB_EACCESS) $(LIBSOCKET) $(LIB_GETLOGIN)
+test_unistd_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_CLOCK_GETTIME) $(LIB_EACCESS) $(LIBSOCKET) $(LIB_GETLOGIN) $(LIB_GETRANDOM)
endif