mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
Fix aarch64 build by disabling CPU optimisations in bundled LZMA
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user