diff options
author | ru <ru@FreeBSD.org> | 2001-09-21 11:21:06 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2001-09-21 11:21:06 +0000 |
commit | 2500f3a61ee4f57bc8aad7bf9eda074e735d4591 (patch) | |
tree | efc5ab4265461bcb8542c814d52a4f0de016886f /sys | |
parent | ced685c13aa77b414be8df528c884fce14b9d358 (diff) | |
download | FreeBSD-src-2500f3a61ee4f57bc8aad7bf9eda074e735d4591.zip FreeBSD-src-2500f3a61ee4f57bc8aad7bf9eda074e735d4591.tar.gz |
Only call kldxref(8) once, after installing all modules.
OK'ed by: peter
Diffstat (limited to 'sys')
-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> |