Re: git: 2289f421c127 - main - textproc/ugrep: add a workaround for building on aarch64 platform
- Reply: Ashish SHUKLA : "Re: git: 2289f421c127 - main - textproc/ugrep: add a workaround for building on aarch64 platform"
- Reply: Ashish SHUKLA : "Re: git: 2289f421c127 - main - textproc/ugrep: add a workaround for building on aarch64 platform"
- In reply to: Ashish SHUKLA : "git: 2289f421c127 - main - textproc/ugrep: add a workaround for building on aarch64 platform"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 24 Jan 2024 14:38:22 UTC
Ashish SHUKLA <ashish@FreeBSD.org> writes:
> --- /dev/null
> +++ b/textproc/ugrep/files/patch-lzma_C_CpuArch.c
> @@ -0,0 +1,15 @@
> +--- lzma/C/CpuArch.c.orig 2024-01-24 11:26:34 UTC
> ++++ lzma/C/CpuArch.c
> +@@ -762,10 +762,11 @@ BoolInt CPU_IsSupported_AES (void) { return APPLE_CRYP
> +
> + #include <sys/auxv.h>
> +
> ++#ifdef __linux__
> + #define USE_HWCAP
> ++#endif
> +
> + #ifdef USE_HWCAP
> +-
> + #include <asm/hwcap.h>
> +
> + #define MY_HWCAP_CHECK_FUNC_2(name1, name2) \
Better sync with archivers/7-zip/files/patch-C_CpuArch.c to support SIMD
on aarch64, mainly the following:
$ rg CPU_IsSupported_
lzma/C/7zCrc.c
318: if (CPU_IsSupported_CRC32())