mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
0538c676cc
commit
f2de139378
2 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue