mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 02:44:41 +03:00
FreeBSD module --enable-debug --enable-invariants
Wire up the --enable-debug flag for configure to the FreeBSD module build. Add --enable-invariants. The running FreeBSD kernel config is used to detect whether to enable INVARIANTS if not explicitly specified with --enable-invariants or --disable-invariants. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ryan Moeller <ryan@iXsystems.com> Closes #11678
This commit is contained in:
@@ -17,6 +17,10 @@ check:
|
||||
modules_uninstall modules_uninstall-Linux modules_uninstall-FreeBSD \
|
||||
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@
|
||||
|
||||
# Filter out options that FreeBSD make doesn't understand
|
||||
getflags = ( \
|
||||
set -- \
|
||||
@@ -42,6 +46,7 @@ FMAKEFLAGS = -C @abs_srcdir@ -f Makefile.bsd $(shell $(getflags))
|
||||
ifneq (@abs_srcdir@,@abs_builddir@)
|
||||
FMAKEFLAGS += MAKEOBJDIR=@abs_builddir@
|
||||
endif
|
||||
|
||||
FMAKE = env -u MAKEFLAGS make $(FMAKEFLAGS)
|
||||
|
||||
modules-Linux:
|
||||
|
||||
Reference in New Issue
Block a user