From 35bf2584852d47a666a0ae3d1c6903c367e8f169 Mon Sep 17 00:00:00 2001 From: Tino Reichardt Date: Fri, 19 Apr 2024 19:15:38 +0200 Subject: [PATCH] Fix: FreeBSD Arm64 does not build currently The define LD_VERSION isn't defined on FreeBSD Arm64 when OpenZFS is build with the default compiler: clang. I used only gcc for testing - my fault. Fast fix as suggested by @mmatuska Reviewed-by: Tony Hutter Reviewed-by: Brian Behlendorf Signed-off-by: Martin Matuska Signed-off-by: Tino Reichardt Closes #16103 --- module/icp/asm-aarch64/blake3/b3_aarch64_sse2.S | 2 +- module/icp/asm-aarch64/blake3/b3_aarch64_sse41.S | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/icp/asm-aarch64/blake3/b3_aarch64_sse2.S b/module/icp/asm-aarch64/blake3/b3_aarch64_sse2.S index e66bb4bc7f..fefebf0811 100644 --- a/module/icp/asm-aarch64/blake3/b3_aarch64_sse2.S +++ b/module/icp/asm-aarch64/blake3/b3_aarch64_sse2.S @@ -34,7 +34,7 @@ #if defined(__aarch64__) /* make gcc <= 9 happy */ -#if LD_VERSION >= 233010000 +#if !defined(LD_VERSION) || LD_VERSION >= 233010000 #define CFI_NEGATE_RA_STATE .cfi_negate_ra_state #else #define CFI_NEGATE_RA_STATE diff --git a/module/icp/asm-aarch64/blake3/b3_aarch64_sse41.S b/module/icp/asm-aarch64/blake3/b3_aarch64_sse41.S index b9fb28dfcf..1ad6cefc6d 100644 --- a/module/icp/asm-aarch64/blake3/b3_aarch64_sse41.S +++ b/module/icp/asm-aarch64/blake3/b3_aarch64_sse41.S @@ -34,7 +34,7 @@ #if defined(__aarch64__) /* make gcc <= 9 happy */ -#if LD_VERSION >= 233010000 +#if !defined(LD_VERSION) || LD_VERSION >= 233010000 #define CFI_NEGATE_RA_STATE .cfi_negate_ra_state #else #define CFI_NEGATE_RA_STATE