libspl: Don't build tunables.c when bootstrapping

The upstream source (which we've currently hacked downstream to make it
compile, even though it won't work) assumes ELF for its hand-rolled
linker set implementation, and macOS's Mach-O is sufficiently different
for it to not even compile there. However, we don't actually need this
file at all, since we only use the bootstrap libspl for DTrace tools, so
just add it to the set of files we don't build when bootstrapping.

Fixes:	df58e8b150 ("zfs: merge openzfs/zfs@8302b6e32")
This commit is contained in:
Jessica Clarke
2025-08-12 18:03:25 +01:00
parent 40c2b622d8
commit c9332a905c
+3 -3
View File
@@ -16,16 +16,16 @@ SRCS = \
os/freebsd/zone.c \
page.c \
timestamp.c \
tunables.c \
include/sys/list.h \
include/sys/list_impl.h
# These functions are not required when bootstrapping and the atomic code
# will not compile when building on macOS.
# These functions are not required when bootstrapping and the atomic code,
# among others, will not compile when building on macOS.
.if !defined(BOOTSTRAPPING)
SRCS += \
atomic.c \
getexecname.c \
tunables.c \
os/freebsd/getexecname.c \
os/freebsd/gethostid.c \
os/freebsd/getmntany.c \