Restrict LOCKDEBUG support to archs with REALCRASH.
Fix build failure for other archs.
This commit is contained in:
parent
7aea3fca18
commit
186c59a8c7
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.43 2020/03/09 01:54:31 christos Exp $
|
||||
# $NetBSD: Makefile,v 1.44 2020/03/09 05:10:19 rin Exp $
|
||||
|
||||
PROG= crash
|
||||
MAN= crash.8
|
||||
|
@ -30,10 +30,6 @@ REALCRASH=yes
|
|||
REALCRASH=no
|
||||
.endif
|
||||
|
||||
CPPFLAGS +=-DLOCKDEBUG
|
||||
CPPFLAGS.subr_lockdebug.c += -DCRASH -DDDB
|
||||
SRCS += subr_lockdebug.c
|
||||
|
||||
.if ${REALCRASH} != "no" # {
|
||||
|
||||
S= ${.CURDIR}/../../sys
|
||||
|
@ -58,6 +54,10 @@ SRCS+= db_disasm.c
|
|||
SRCS+= kern_timeout.c
|
||||
CPPFLAGS.kern_timeout.c += -DCRASH -DDDB
|
||||
|
||||
CPPFLAGS +=-DLOCKDEBUG
|
||||
SRCS += subr_lockdebug.c
|
||||
CPPFLAGS.subr_lockdebug.c += -DCRASH -DDDB
|
||||
|
||||
CPPFLAGS+= -I${S}/arch
|
||||
|
||||
. if ${MACHINE} == "amd64" \
|
||||
|
|
Loading…
Reference in New Issue