aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTino Reichardt <milky-zfs@mcmilk.de>2024-04-19 17:15:38 +0000
committerGitHub <noreply@github.com>2024-04-19 17:15:38 +0000
commit35bf2584852d47a666a0ae3d1c6903c367e8f169 (patch)
treee8e05b295d6c8a42d3cb1246d21f1f74d7677676
parent454c0b0e46eca93a9d6af262c41b56987b15928e (diff)
downloadsrc-35bf2584852d47a666a0ae3d1c6903c367e8f169.tar.gz
src-35bf2584852d47a666a0ae3d1c6903c367e8f169.zip
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 <hutter2@llnl.gov> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Martin Matuska <mm@FreeBSD.org> Signed-off-by: Tino Reichardt <milky-zfs@mcmilk.de> Closes #16103
-rw-r--r--module/icp/asm-aarch64/blake3/b3_aarch64_sse2.S2
-rw-r--r--module/icp/asm-aarch64/blake3/b3_aarch64_sse41.S2
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 e66bb4bc7f26..fefebf08116e 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 b9fb28dfcf03..1ad6cefc6d06 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