Fix aarch64 build by disabling CPU optimisations in bundled LZMA

This commit is contained in:
kn 2022-12-02 23:48:10 +00:00
parent 451290f73c
commit 43363d5353
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
Disable CPU detection on ARMv7 and ARM64
Index: common/LZMA/SDK/C/CpuArch.c
--- common/LZMA/SDK/C/CpuArch.c.orig
+++ common/LZMA/SDK/C/CpuArch.c
@@ -415,9 +415,11 @@ BoolInt CPU_IsSupported_AES (void) { return APPLE_CRYP
#else // __APPLE__
+#if !defined(__OpenBSD__)
#include <sys/auxv.h>
#define USE_HWCAP
+#endif // !defined(__OpenBSD__)
#ifdef USE_HWCAP