]> Savannah Git Hosting - gnulib.git/commitdiff
Fix various test link errors on MSVC.
authorBruno Haible <bruno@clisp.org>
Sun, 4 Sep 2022 23:53:28 +0000 (01:53 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 5 Sep 2022 02:00:37 +0000 (04:00 +0200)
* 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).

20 files changed:
ChangeLog
modules/crypto/gc-arcfour-tests
modules/crypto/gc-arctwo-tests
modules/crypto/gc-des-tests
modules/crypto/gc-hmac-md5-tests
modules/crypto/gc-hmac-sha1-tests
modules/crypto/gc-hmac-sha256-tests
modules/crypto/gc-hmac-sha512-tests
modules/crypto/gc-md2-tests
modules/crypto/gc-md4-tests
modules/crypto/gc-md5-tests
modules/crypto/gc-pbkdf2-sha1-tests
modules/crypto/gc-pbkdf2-tests
modules/crypto/gc-rijndael-tests
modules/crypto/gc-sha1-tests
modules/crypto/gc-sha256-tests
modules/crypto/gc-sha512-tests
modules/crypto/gc-sm3-tests
modules/sys_stat-c++-tests
modules/unistd-c++-tests

index 883cd016a070c6548830be3e4a78758e400bb716..3127f529cd56745027f99399e4343c963bedfbc9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,45 @@
+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.
index b0ed0bd6949b6f6fd42a956f702f07575f8f7aad..c6ebcb663f15b021c1b1569a8593129671d2e46a 100644 (file)
@@ -8,3 +8,4 @@ configure.ac:
 Makefile.am:
 TESTS += test-gc-arcfour
 check_PROGRAMS += test-gc-arcfour
+test_gc_arcfour_LDADD = $(LDADD) $(LIB_GETRANDOM)
index d1cdaff9917ebdba37550e6a908267b418482b52..6e74c80c2f889b6e5111dbb02ec93812529b335c 100644 (file)
@@ -8,3 +8,4 @@ configure.ac:
 Makefile.am:
 TESTS += test-gc-arctwo
 check_PROGRAMS += test-gc-arctwo
+test_gc_arctwo_LDADD = $(LDADD) $(LIB_GETRANDOM)
index a041a1c4195b367fb5ad6baf425e010af657bc52..5d1bd46ee8e88224874bd41ad102a8ebb2662149 100644 (file)
@@ -8,4 +8,4 @@ configure.ac:
 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)
index 7ae3d2f79d5a558d2a2134ba0c500842367d1652..345ba872ac0150a1ebb8376467c1f7a435fedd89 100644 (file)
@@ -8,4 +8,4 @@ configure.ac:
 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)
index 9cc23aea277f8634604a222e21ffac973315b95f..c1effd786487c41be0eaae2a7209951d55826769 100644 (file)
@@ -8,4 +8,4 @@ configure.ac:
 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)
index 82f0b44ba2ddc46e74b17fd6d12391ed78f64aea..de0370fe0983bec5e422f41422d209b07ef57418 100644 (file)
@@ -8,4 +8,4 @@ configure.ac:
 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)
index e308f986c053187990e5148efba3a41fc198ebad..e1c2e478f0b8d54002ec111fea7b26cfcf372278 100644 (file)
@@ -8,4 +8,4 @@ configure.ac:
 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)
index 74ccdf03cdc3d7e6b319e98c34effcb0431dff1f..b7ef11ff7c124aea44313cb5ad47b0000c588181 100644 (file)
@@ -8,4 +8,4 @@ configure.ac:
 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)
index b2a4ce1a12a2fb290c4b52cf14b87f699397f9f5..0b32e7e52f47d9a1912b508c897d421f0261e1b8 100644 (file)
@@ -8,4 +8,4 @@ configure.ac:
 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)
index 865e77e6596bc02b118dd30749025a5ff1276bff..4e4b8f80231a3171d5e4449780154db16ab654ea 100644 (file)
@@ -8,4 +8,4 @@ configure.ac:
 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)
index d88b541701465a96a7306c53a2195a68c3bcc8a8..b1d73c785ea05254c67869a8a47d1d1d7a6d8fa8 100644 (file)
@@ -8,4 +8,4 @@ configure.ac:
 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)
index 0b90547c78edb6132903caf30954b27702b9d8e9..f5eac922890180093221cfb0e8219944cd14cfae 100644 (file)
@@ -8,4 +8,4 @@ configure.ac:
 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)
index c7aaee2d6331a372358986908150a2d79946defd..7c87920df6f7ddd7206e21ccad8d871d30cf15c1 100644 (file)
@@ -8,4 +8,4 @@ configure.ac:
 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)
index 7cfef60da6530fc511fd7cb07e31bf6c3936678a..afa1ba2f35134333da8f95ea5d971a5162b0523d 100644 (file)
@@ -8,4 +8,4 @@ configure.ac:
 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)
index 677ed62da08458cebd010375a3cbee026e28a9fd..13c55c59302f9e25b065b1fbf9d41f69a248d7e7 100644 (file)
@@ -8,4 +8,4 @@ configure.ac:
 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)
index b007cd108e262ad03a60302e82dd07fbcf06a9f0..22cb3bab4cd82a8451001ef13ce5f8d046d903ff 100644 (file)
@@ -8,4 +8,4 @@ configure.ac:
 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)
index 006f41f37448e989fcb38f87fe3cab6f9241639d..f64322a6d97b4c9ccaf80e2602d63e7b9f01ea17 100644 (file)
@@ -8,4 +8,4 @@ configure.ac:
 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)
index 576ef07014a93fc7af2d4d5d78d6a8fd62fb5750..3a612151b41ee0b9f055b6341eed34f4e920eae2 100644 (file)
@@ -15,5 +15,5 @@ if ANSICXX
 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
index 739382b56279db9378e95a4fbf2ab7a3c4f3b02c..3aaf52bbe76eb15419a593851109a310d8ee922e 100644 (file)
@@ -15,5 +15,5 @@ if ANSICXX
 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