diff options
author | marcel <marcel@FreeBSD.org> | 2006-07-29 19:43:26 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2006-07-29 19:43:26 +0000 |
commit | 390d60b0cbc1e19be89580abe416118d3a968f8d (patch) | |
tree | b748a42ccf1507a78f29b3a9a287885d4cbe7057 /usr.sbin/kldxref/Makefile | |
parent | 018ef6efe1e20b420eaa3afdaa37b0abeba93a1a (diff) | |
download | FreeBSD-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/Makefile')
-rw-r--r-- | usr.sbin/kldxref/Makefile | 4 |
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 |