summaryrefslogtreecommitdiffstats
path: root/usr.sbin/kldxref
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2006-07-29 19:43:26 +0000
committermarcel <marcel@FreeBSD.org>2006-07-29 19:43:26 +0000
commit390d60b0cbc1e19be89580abe416118d3a968f8d (patch)
treeb748a42ccf1507a78f29b3a9a287885d4cbe7057 /usr.sbin/kldxref
parent018ef6efe1e20b420eaa3afdaa37b0abeba93a1a (diff)
downloadFreeBSD-src-390d60b0cbc1e19be89580abe416118d3a968f8d.zip
FreeBSD-src-390d60b0cbc1e19be89580abe416118d3a968f8d.tar.gz
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.
Diffstat (limited to 'usr.sbin/kldxref')
-rw-r--r--usr.sbin/kldxref/Makefile4
1 files changed, 4 insertions, 0 deletions
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
OpenPOWER on IntegriCloud