From d9f442c592e5d5227b7d9d49d0c10e8f352e6a11 Mon Sep 17 00:00:00 2001 From: jake Date: Fri, 13 Dec 2002 00:32:29 +0000 Subject: [PATCH] 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 --- sys/conf/kmod.mk | 2 +- sys/modules/Makefile | 2 +- 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 -.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 \