diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk index 497c00db95c..0d8a1aab4d1 100644 --- a/sys/conf/kmod.mk +++ b/sys/conf/kmod.mk @@ -213,7 +213,7 @@ _kmodinstall: .include -.if !defined(NO_XREF) +.if !defined(NO_XREF) && ${MACHINE_ARCH} != "sparc64" afterinstall: _kldxref .ORDER: realinstall _kldxref .ORDER: _installlinks _kldxref diff --git a/sys/modules/Makefile b/sys/modules/Makefile index b7993d11c5d..f7ae66123eb 100644 --- a/sys/modules/Makefile +++ b/sys/modules/Makefile @@ -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 \