Add a .WAIT to ensure that all the program objects are built before

trying to build the crunched binary.
Might fix toolchain/21563
This commit is contained in:
dsl 2003-05-14 11:20:01 +00:00
parent b2aa917e00
commit 606b795c6a
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: crunchgen.c,v 1.45 2003/05/09 12:10:15 dsl Exp $ */
/* $NetBSD: crunchgen.c,v 1.46 2003/05/14 11:20:01 dsl Exp $ */
/*
* Copyright (c) 1994 University of Maryland
* All Rights Reserved.
@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
__RCSID("$NetBSD: crunchgen.c,v 1.45 2003/05/09 12:10:15 dsl Exp $");
__RCSID("$NetBSD: crunchgen.c,v 1.46 2003/05/14 11:20:01 dsl Exp $");
#endif
#if HAVE_CONFIG_H
@ -857,7 +857,7 @@ void top_makefile_rules(FILE *outmk)
fprintf(outmk, "PROG=%s\n\n", execfname);
fprintf(outmk, "all: ${SUBMAKE_TARGETS} ${PROG}.strip\n");
fprintf(outmk, "all: ${SUBMAKE_TARGETS} .WAIT ${PROG}.strip\n");
fprintf(outmk, "${PROG}.strip:\n");
fprintf(outmk, "\t${MAKE} -f ${PROG}.mk ${PROG}\n");
fprintf(outmk, "\t[ -f ${PROG}.stripped -a ! ${PROG} -nt ${PROG}.stripped ] || { \\\n");