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 Burkholder 2002-12-13 00:32:29 +00:00
parent 0538c676cc
commit f2de139378
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 \