summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/conf/kmod.mk2
-rw-r--r--sys/modules/Makefile2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk
index 497c00db95c3..0d8a1aab4d10 100644
--- a/sys/conf/kmod.mk
+++ b/sys/conf/kmod.mk
@@ -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
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index b7993d11c5db..f7ae66123eb7 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 \