summaryrefslogtreecommitdiffstats
path: root/usr.sbin/crunch
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2001-03-30 08:04:25 +0000
committerru <ru@FreeBSD.org>2001-03-30 08:04:25 +0000
commitb83dc0f648146b1dd6dc7e7095d95cfa67421222 (patch)
treec9644170d51098832fd6366101a3e34f1237dbfb /usr.sbin/crunch
parentc59a8fb48cd1948588682270e91ef3b2aa3f0848 (diff)
downloadFreeBSD-src-b83dc0f648146b1dd6dc7e7095d95cfa67421222.zip
FreeBSD-src-b83dc0f648146b1dd6dc7e7095d95cfa67421222.tar.gz
`buildopts' may affect the selection of object files.
Make sure we pass $(BUILDOPTS) to the `clean' target so that `make clean' works on the same set of object files. Otherwise, we may end up with an incorrectly built and up-to-date object file.
Diffstat (limited to 'usr.sbin/crunch')
-rw-r--r--usr.sbin/crunch/crunchgen/crunchgen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/crunch/crunchgen/crunchgen.c b/usr.sbin/crunch/crunchgen/crunchgen.c
index cf7066f..eca824c 100644
--- a/usr.sbin/crunch/crunchgen/crunchgen.c
+++ b/usr.sbin/crunch/crunchgen/crunchgen.c
@@ -993,7 +993,7 @@ void prog_makefile_rules(FILE *outmk, prog_t *p)
p->ident, p->ident);
fprintf(outmk, "\n");
fprintf(outmk, "%s_clean:\n", p->ident);
- fprintf(outmk, "\t(cd $(%s_SRCDIR) && $(MAKE) clean)\n\n",
+ fprintf(outmk, "\t(cd $(%s_SRCDIR) && $(MAKE) $(BUILDOPTS) clean)\n\n",
p->ident);
} else {
fprintf(outmk, "%s_make:\n", p->ident);
OpenPOWER on IntegriCloud