Don't run kldxref when installing modules on sparc64. kldxref and the whole

module dependency system rely on linker behaviour that is machine dependent
and not part of the elf spec, and only work by accident on other platforms.

Approved by:	re
This commit is contained in:
jake 2002-12-13 00:32:29 +00:00
parent 5b7e5464ee
commit d9f442c592
2 changed files with 2 additions and 2 deletions

View File

@ -213,7 +213,7 @@ _kmodinstall:
.include <bsd.links.mk>
.if !defined(NO_XREF)
.if !defined(NO_XREF) && ${MACHINE_ARCH} != "sparc64"
afterinstall: _kldxref
.ORDER: realinstall _kldxref
.ORDER: _installlinks _kldxref

View File

@ -271,7 +271,7 @@ SUBDIR=${MODULES_OVERRIDE}
.endif
# Calling kldxref(8) for each module is expensive.
.if !defined(NO_XREF)
.if !defined(NO_XREF) && ${MACHINE_ARCH} != "sparc64"
.MAKEFLAGS:= ${.MAKEFLAGS} -DNO_XREF
afterinstall:
@if type kldxref >/dev/null 2>&1; then \