Module Name: src Committed By: rin Date: Mon Mar 9 05:10:19 UTC 2020
Modified Files: src/usr.sbin/crash: Makefile Log Message: Restrict LOCKDEBUG support to archs with REALCRASH. Fix build failure for other archs. To generate a diff of this commit: cvs rdiff -u -r1.43 -r1.44 src/usr.sbin/crash/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.sbin/crash/Makefile diff -u src/usr.sbin/crash/Makefile:1.43 src/usr.sbin/crash/Makefile:1.44 --- src/usr.sbin/crash/Makefile:1.43 Mon Mar 9 01:54:31 2020 +++ src/usr.sbin/crash/Makefile Mon Mar 9 05:10:19 2020 @@ -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" \