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

Signed-off-by: Martin Matuska <mm@FreeBSD.org>
Signed-off-by: Tino Reichardt <milky-zfs@mcmilk.de>
This commit is contained in:
Tino Reichardt 2024-04-17 17:11:10 +02:00
parent cf60db6ebe
commit f75a15a5e1
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@
#if defined(__aarch64__) #if defined(__aarch64__)
/* make gcc <= 9 happy */ /* make gcc <= 9 happy */
#if LD_VERSION >= 233010000 #if !defined(LD_VERSION) || LD_VERSION >= 233010000
#define CFI_NEGATE_RA_STATE .cfi_negate_ra_state #define CFI_NEGATE_RA_STATE .cfi_negate_ra_state
#else #else
#define CFI_NEGATE_RA_STATE #define CFI_NEGATE_RA_STATE

View File

@ -34,7 +34,7 @@
#if defined(__aarch64__) #if defined(__aarch64__)
/* make gcc <= 9 happy */ /* make gcc <= 9 happy */
#if LD_VERSION >= 233010000 #if !defined(LD_VERSION) || LD_VERSION >= 233010000
#define CFI_NEGATE_RA_STATE .cfi_negate_ra_state #define CFI_NEGATE_RA_STATE .cfi_negate_ra_state
#else #else
#define CFI_NEGATE_RA_STATE #define CFI_NEGATE_RA_STATE