The Makefile and main.c arranged to put "netbsd-${DATE}" into the
executable. Remove this so that different compiles can be binary compared. rcsid's for all files are already embedded in the executable so versions can be easily distinguished. (I didn't catch this on previous passes because I did my builds on the same day.) Note: there's a special rule for main.o in Makefile with a purpose I can't actually discern -- I think it isn't needed, and I've flagged it with a comment.
This commit is contained in:
parent
44eb10764a
commit
a24e0ba1bb
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.46 2009/01/24 11:59:39 dsl Exp $
|
||||
# $NetBSD: Makefile,v 1.47 2009/03/20 20:48:00 perry Exp $
|
||||
# @(#)Makefile 5.2 (Berkeley) 12/28/90
|
||||
|
||||
PROG= make
|
||||
@ -25,11 +25,8 @@ SUBDIR+= unit-tests
|
||||
.include <bsd.prog.mk>
|
||||
.include <bsd.subdir.mk>
|
||||
|
||||
# provide a clue as to what we are using
|
||||
BUILD_DATE!= date +%Y%m%d
|
||||
MAKE_VERSION:= netbsd-${BUILD_DATE}
|
||||
CPPFLAGS_main.o:= "-DMAKE_VERSION=\"${MAKE_VERSION}\""
|
||||
CPPFLAGS+= ${CPPFLAGS_${.TARGET}} -DMAKE_NATIVE
|
||||
CPPFLAGS+= -DMAKE_NATIVE
|
||||
# XXX is this special rule for main.o actually needed?
|
||||
main.o: ${OBJS:Nmain.o} ${MAKEFILE}
|
||||
COPTS.var.c+= -Wno-cast-qual
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: main.c,v 1.168 2009/03/18 22:02:49 christos Exp $ */
|
||||
/* $NetBSD: main.c,v 1.169 2009/03/20 20:48:00 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988, 1989, 1990, 1993
|
||||
@ -69,7 +69,7 @@
|
||||
*/
|
||||
|
||||
#ifndef MAKE_NATIVE
|
||||
static char rcsid[] = "$NetBSD: main.c,v 1.168 2009/03/18 22:02:49 christos Exp $";
|
||||
static char rcsid[] = "$NetBSD: main.c,v 1.169 2009/03/20 20:48:00 perry Exp $";
|
||||
#else
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
@ -81,7 +81,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 1989, 1990, 1993\
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)main.c 8.3 (Berkeley) 3/19/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: main.c,v 1.168 2009/03/18 22:02:49 christos Exp $");
|
||||
__RCSID("$NetBSD: main.c,v 1.169 2009/03/20 20:48:00 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
#endif
|
||||
@ -830,9 +830,6 @@ main(int argc, char **argv)
|
||||
Var_Set(".CURDIR", curdir, VAR_GLOBAL, 0);
|
||||
Var_Set("MACHINE", machine, VAR_GLOBAL, 0);
|
||||
Var_Set("MACHINE_ARCH", machine_arch, VAR_GLOBAL, 0);
|
||||
#ifdef MAKE_VERSION
|
||||
Var_Set("MAKE_VERSION", MAKE_VERSION, VAR_GLOBAL, 0);
|
||||
#endif
|
||||
Var_Set(".newline", "\n", VAR_GLOBAL, 0); /* handy for :@ loops */
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user