diff --git a/sysutils/openzfs-kmod/Makefile b/sysutils/openzfs-kmod/Makefile index f9f4177fc485..9dfc06085de2 100644 --- a/sysutils/openzfs-kmod/Makefile +++ b/sysutils/openzfs-kmod/Makefile @@ -32,6 +32,8 @@ GCOV_DESC= Build kernel module with GCOV support (Requires gcc) IGNORE= needs FreeBSD 12/13 with AES-CCM support .endif +MAKE_OPTS+= SYSDIR=${SRC_BASE}/sys + .if ${PORT_OPTIONS:MDEBUG} MAKE_OPTS+= WITH_DEBUG=true PLIST_FILES+= ${KMODDIR}/${KMODTARGET}.debug