mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
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:
parent
5842d4e5b2
commit
74a19f1229
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=28191
1 changed files with 8 additions and 8 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/*-
|
||||
|
|
Loading…
Reference in a new issue