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:
parent
5b7e5464ee
commit
d9f442c592
@ -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
|
||||
|
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user