From 27ec5b142ac5650f0e990da130405dd22cf3e137 Mon Sep 17 00:00:00 2001 From: Theo Buehler Date: Fri, 18 Oct 2024 17:41:20 +0200 Subject: disable cpu caps on windows for now --- patches/patch-amd64-crypto-cpu-caps.c.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 patches/patch-amd64-crypto-cpu-caps.c.patch diff --git a/patches/patch-amd64-crypto-cpu-caps.c.patch b/patches/patch-amd64-crypto-cpu-caps.c.patch new file mode 100644 index 0000000..f7cb4c9 --- /dev/null +++ b/patches/patch-amd64-crypto-cpu-caps.c.patch @@ -0,0 +1,20 @@ +--- crypto/arch/amd64/crypto_cpu_caps.c.orig Fri Oct 18 17:35:20 2024 ++++ crypto/arch/amd64/crypto_cpu_caps.c Fri Oct 18 17:39:13 2024 +@@ -33,7 +33,7 @@ cpuid(uint32_t eax, uint32_t *out_eax, uint32_t *out_e + { + uint32_t ebx = 0, ecx = 0, edx = 0; + +-#ifndef OPENSSL_NO_ASM ++#if defined(__GNUC__) && !defined(OPENSSL_NO_ASM) + __asm__ ("cpuid": "+a"(eax), "+b"(ebx), "+c"(ecx), "+d"(edx)); + #else + eax = 0; +@@ -54,7 +54,7 @@ xgetbv(uint32_t ecx, uint32_t *out_eax, uint32_t *out_ + { + uint32_t eax = 0, edx = 0; + +-#ifndef OPENSSL_NO_ASM ++#if defined(__GNUC__) && !defined(OPENSSL_NO_ASM) + __asm__ ("xgetbv": "+a"(eax), "+c"(ecx), "+d"(edx)); + #endif + -- cgit v1.2.3-55-g6feb