From 3fffe4e7071a65047949da5e309792834c06ce3e Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Wed, 14 Jan 2026 15:54:12 -0700 Subject: [PATCH] Fix --enable-invariants on FreeBSD The make symbols were never getting forwarded to the correct make subprocess. As far as I can tell, this has never worked. Either that, or something has changed in the behavior of make. Reviewed-by: Brian Behlendorf Signed-off-by: Alan Somers Closes #18131 --- module/Makefile.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/module/Makefile.in b/module/Makefile.in index 859ba8649..2a3875113 100644 --- a/module/Makefile.in +++ b/module/Makefile.in @@ -19,8 +19,8 @@ check: cppcheck cppcheck-Linux cppcheck-FreeBSD # For FreeBSD, use debug options from ./configure if not overridden. -export WITH_DEBUG ?= @WITH_DEBUG@ -export WITH_INVARIANTS ?= @WITH_INVARIANTS@ +WITH_DEBUG ?= @WITH_DEBUG@ +WITH_INVARIANTS ?= @WITH_INVARIANTS@ # Filter out options that FreeBSD make doesn't understand getflags = ( \ @@ -43,6 +43,7 @@ done; \ echo $$fmakeflags \ ) FMAKEFLAGS = -C @abs_srcdir@ -f Makefile.bsd $(shell $(getflags)) +FMAKEFLAGS += WITH_DEBUG=$(WITH_DEBUG) WITH_INVARIANTS=$(WITH_INVARIANTS) ifneq (@abs_srcdir@,@abs_builddir@) FMAKEFLAGS += MAKEOBJDIR=@abs_builddir@