diff options
-rw-r--r-- | crypto/Makefile.am.mingw64-x86_64 | 13 | ||||
-rw-r--r-- | patches/win32_amd64_bn_arch.h.patch | 21 |
2 files changed, 21 insertions, 13 deletions
diff --git a/crypto/Makefile.am.mingw64-x86_64 b/crypto/Makefile.am.mingw64-x86_64 index f808c12..bce854b 100644 --- a/crypto/Makefile.am.mingw64-x86_64 +++ b/crypto/Makefile.am.mingw64-x86_64 | |||
@@ -19,19 +19,6 @@ ASM_X86_64_MINGW64 += sha/sha512-mingw64-x86_64.S | |||
19 | ASM_X86_64_MINGW64 += whrlpool/wp-mingw64-x86_64.S | 19 | ASM_X86_64_MINGW64 += whrlpool/wp-mingw64-x86_64.S |
20 | ASM_X86_64_MINGW64 += cpuid-mingw64-x86_64.S | 20 | ASM_X86_64_MINGW64 += cpuid-mingw64-x86_64.S |
21 | 21 | ||
22 | ASM_X86_64_MINGW64 += bn/arch/amd64/bignum_add.S | ||
23 | ASM_X86_64_MINGW64 += bn/arch/amd64/bignum_cmadd.S | ||
24 | ASM_X86_64_MINGW64 += bn/arch/amd64/bignum_cmul.S | ||
25 | ASM_X86_64_MINGW64 += bn/arch/amd64/bignum_mul.S | ||
26 | ASM_X86_64_MINGW64 += bn/arch/amd64/bignum_mul_4_8_alt.S | ||
27 | ASM_X86_64_MINGW64 += bn/arch/amd64/bignum_mul_8_16_alt.S | ||
28 | ASM_X86_64_MINGW64 += bn/arch/amd64/bignum_sqr.S | ||
29 | ASM_X86_64_MINGW64 += bn/arch/amd64/bignum_sqr_4_8_alt.S | ||
30 | ASM_X86_64_MINGW64 += bn/arch/amd64/bignum_sqr_8_16_alt.S | ||
31 | ASM_X86_64_MINGW64 += bn/arch/amd64/bignum_sub.S | ||
32 | ASM_X86_64_MINGW64 += bn/arch/amd64/word_clz.S | ||
33 | ASM_X86_64_MINGW64 += bn/arch/amd64/bn_arch.c | ||
34 | |||
35 | EXTRA_DIST += $(ASM_X86_64_MINGW64) | 22 | EXTRA_DIST += $(ASM_X86_64_MINGW64) |
36 | 23 | ||
37 | if HOST_ASM_MINGW64_X86_64 | 24 | if HOST_ASM_MINGW64_X86_64 |
diff --git a/patches/win32_amd64_bn_arch.h.patch b/patches/win32_amd64_bn_arch.h.patch new file mode 100644 index 0000000..20205dc --- /dev/null +++ b/patches/win32_amd64_bn_arch.h.patch | |||
@@ -0,0 +1,21 @@ | |||
1 | --- crypto/bn/arch/amd64/bn_arch.h.orig 2023-02-27 04:43:12.257874699 -0600 | ||
2 | +++ crypto/bn/arch/amd64/bn_arch.h 2023-02-27 04:44:05.541873870 -0600 | ||
3 | @@ -20,6 +20,10 @@ | ||
4 | #ifndef HEADER_BN_ARCH_H | ||
5 | #define HEADER_BN_ARCH_H | ||
6 | |||
7 | +#ifdef _WIN32 | ||
8 | +#define OPENSSL_NO_ASM | ||
9 | +#else | ||
10 | + | ||
11 | #ifndef OPENSSL_NO_ASM | ||
12 | |||
13 | #define HAVE_BN_ADD | ||
14 | @@ -85,6 +89,7 @@ | ||
15 | *out_r0 = r0; | ||
16 | } | ||
17 | #endif /* __GNUC__ */ | ||
18 | +#endif /* _WIN32 */ | ||
19 | |||
20 | #endif | ||
21 | #endif | ||