Skip to content

Commit 35bf258

Browse files
authored
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 <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Martin Matuska <[email protected]> Signed-off-by: Tino Reichardt <[email protected]> Closes #16103
1 parent 454c0b0 commit 35bf258

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

module/icp/asm-aarch64/blake3/b3_aarch64_sse2.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#if defined(__aarch64__)
3535

3636
/* make gcc <= 9 happy */
37-
#if LD_VERSION >= 233010000
37+
#if !defined(LD_VERSION) || LD_VERSION >= 233010000
3838
#define CFI_NEGATE_RA_STATE .cfi_negate_ra_state
3939
#else
4040
#define CFI_NEGATE_RA_STATE

module/icp/asm-aarch64/blake3/b3_aarch64_sse41.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#if defined(__aarch64__)
3535

3636
/* make gcc <= 9 happy */
37-
#if LD_VERSION >= 233010000
37+
#if !defined(LD_VERSION) || LD_VERSION >= 233010000
3838
#define CFI_NEGATE_RA_STATE .cfi_negate_ra_state
3939
#else
4040
#define CFI_NEGATE_RA_STATE

0 commit comments

Comments
 (0)