From 390d60b0cbc1e19be89580abe416118d3a968f8d Mon Sep 17 00:00:00 2001 From: marcel Date: Sat, 29 Jul 2006 19:43:26 +0000 Subject: Link kldxref(8) static on PowerPC to work around a SIGSEGV that cannot easily be analyzed due to there being no debugger yet. The SIGSEGV only happens when kldxref is linked shared. Since kldxref(8) is needed for a release build, having it not dump core is important. --- usr.sbin/kldxref/Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'usr.sbin/kldxref') diff --git a/usr.sbin/kldxref/Makefile b/usr.sbin/kldxref/Makefile index 33337fd..3c2be2f 100644 --- a/usr.sbin/kldxref/Makefile +++ b/usr.sbin/kldxref/Makefile @@ -6,6 +6,10 @@ SRCS= kldxref.c ef.c ef_obj.c WARNS?= 2 +.if ${MACHINE_ARCH} == powerpc +LDFLAGS+=-static +.endif + .if exists(ef_${MACHINE_ARCH}.c) SRCS+= ef_${MACHINE_ARCH}.c .else -- cgit v1.1