Fix aarch64 build by disabling CPU optimisations in bundled LZMA
This commit is contained in:
parent
451290f73c
commit
43363d5353
|
@ -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
|
||||
|
Loading…
Reference in New Issue