Project

General

Profile

« Previous | Next » 

Revision faa4f4f2

Added by nobu (Nobuyoshi Nakada) over 4 years ago

Get rid of FreeBSD make incompatibility [Bug #16331]

FreeBSD make works differently with -j option.

-j max_jobs
Specify the maximum number of jobs that make may have running
at any one time. The value is saved in .MAKE.JOBS. Turns
compatibility mode off, unless the B flag is also specified.
When compatibility mode is off, all commands associated with a
target are executed in a single shell invocation as opposed to
the traditional one shell invocation per line. This can break
traditional scripts which change directories on each command
invocation and then expect to start with a fresh environment on
the next line. It is more efficient to correct the scripts
rather than turn backwards compatibility on.

Stop using exit, cd, exec in middle of commands.