From 8841d3f7b93e0b4ab4646e9447c465191f1ae5ff Mon Sep 17 00:00:00 2001 From: christos Date: Sun, 20 May 2018 03:09:02 +0000 Subject: [PATCH] Fix reproducible builds XXX: pullup-8 --- usr.sbin/crash/Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/usr.sbin/crash/Makefile b/usr.sbin/crash/Makefile index b9a602ef2d8c..127e639ee864 100644 --- a/usr.sbin/crash/Makefile +++ b/usr.sbin/crash/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.39 2018/03/04 07:15:37 mlelstv Exp $ +# $NetBSD: Makefile,v 1.40 2018/05/20 03:09:02 christos Exp $ PROG= crash MAN= crash.8 @@ -84,10 +84,18 @@ SRCS+= generic.c COPTS.db_output.c += -Wno-format-nonliteral +.if ${MKREPRO} == "yes" +. if ${MKREPRO_TIMESTAMP:U0} != 0 +NVFLAGS+=-r ${MKREPRO_TIMESTAMP} +. else +NVFLAGS+=-R +. endif +.endif + # vers.c SRCS+= vers.c vers.c: ${S}/conf/newvers.sh ${_NETBSD_VERSION_DEPENDS} - ${HOST_SH} ${S}/conf/newvers.sh -r -n + ${HOST_SH} ${S}/conf/newvers.sh ${NVFLAGS} -n -m ${MACHINE} -i CRASH CLEANFILES+= vers.c version .else # } {