[packages/wolfssl] - patch to check also ABI in case of x86_64 target
qboosh
qboosh at pld-linux.org
Mon Sep 11 21:04:10 CEST 2023
commit 7b98550fa23a67f05f1f2852470dd1415f06a145
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Sep 11 19:53:07 2023 +0200
- patch to check also ABI in case of x86_64 target
wolfssl-x32.patch | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
---
diff --git a/wolfssl-x32.patch b/wolfssl-x32.patch
new file mode 100644
index 0000000..24a1c27
--- /dev/null
+++ b/wolfssl-x32.patch
@@ -0,0 +1,22 @@
+--- wolfssl-5.6.3-stable/wolfssl/wolfcrypt/types.h.orig 2023-06-19 06:16:56.000000000 +0200
++++ wolfssl-5.6.3-stable/wolfssl/wolfcrypt/types.h 2023-09-11 19:35:49.300952574 +0200
+@@ -227,7 +227,7 @@ decouple library dependencies with stand
+ (defined(__mips64) && \
+ ((defined(_ABI64) && (_MIPS_SIM == _ABI64)) || \
+ (defined(_ABIO64) && (_MIPS_SIM == _ABIO64)))) || \
+- defined(__x86_64__) || defined(_M_X64)) || \
++ (defined(__x86_64__) && defined(__LP64__)) || defined(_M_X64)) || \
+ defined(__aarch64__) || defined(__sparc64__) || defined(__s390x__ ) || \
+ (defined(__riscv_xlen) && (__riscv_xlen == 64)) || defined(_M_ARM64) || \
+ defined(__aarch64__) || \
+--- wolfssl-5.6.3-stable/wolfcrypt/src/siphash.c.orig 2023-06-19 06:16:56.000000000 +0200
++++ wolfssl-5.6.3-stable/wolfcrypt/src/siphash.c 2023-09-11 19:38:45.445322685 +0200
+@@ -353,7 +353,7 @@ int wc_SipHashFinal(SipHash* sipHash, un
+ return ret;
+ }
+
+-#if !defined(WOLFSSL_NO_ASM) && defined(__GNUC__) && defined(__x86_64__) && \
++#if !defined(WOLFSSL_NO_ASM) && defined(__GNUC__) && defined(__x86_64__) && defined(__LP64__) && \
+ (WOLFSSL_SIPHASH_CROUNDS == 1 || WOLFSSL_SIPHASH_CROUNDS == 2) && \
+ (WOLFSSL_SIPHASH_DROUNDS == 2 || WOLFSSL_SIPHASH_DROUNDS == 4)
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/wolfssl.git/commitdiff/7b98550fa23a67f05f1f2852470dd1415f06a145
More information about the pld-cvs-commit
mailing list