diff options
Diffstat (limited to 'sys/modules')
-rw-r--r-- | sys/modules/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile index 3cae877..445127f 100644 --- a/sys/modules/Makefile +++ b/sys/modules/Makefile @@ -147,4 +147,11 @@ SUBDIR+=ext2fs SUBDIR=${MODULES_OVERRIDE} .endif +# Calling kldxref(8) for each module is expensive. +.if !defined(NO_XREF) +.MAKEFLAGS:= ${.MAKEFLAGS} -DNO_XREF +afterinstall: + -kldxref ${DESTDIR}${KMODDIR} +.endif + .include <bsd.subdir.mk> |