Fix PR bin/4291: /usr/bin/make - inconsistent -j<n> flag parsing.

Submitted by:	N.Dudorov <nnd@itfs.nsk.su>
This commit is contained in:
Steve Passe 1997-08-14 04:46:20 +00:00
parent 5842d4e5b2
commit 74a19f1229
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=28191

View file

@ -47,7 +47,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)main.c 8.3 (Berkeley) 3/19/94";
#endif
static const char rcsid[] =
"$Id$";
"$Id: main.c,v 1.18 1997/07/24 06:58:06 charnier Exp $";
#endif /* not lint */
/*-
@ -315,13 +315,6 @@ rearg: while((c = getopt(argc, argv, OPTFLAGS)) != -1) {
}
}
/*
* Be compatible if user did not specify -j and did not explicitly
* turned compatibility on
*/
if (!compatMake && !forceJobs)
compatMake = TRUE;
oldVars = TRUE;
/*
@ -344,6 +337,13 @@ rearg: while((c = getopt(argc, argv, OPTFLAGS)) != -1) {
}
(void)Lst_AtEnd(create, (ClientData)estrdup(*argv));
}
/*
* Be compatible if user did not specify -j and did not explicitly
* turned compatibility on
*/
if (!compatMake && !forceJobs)
compatMake = TRUE;
}
/*-