diff options
author | Caleb Maclennan <caleb@alerque.com> | 2024-04-10 14:15:02 +0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2024-04-10 11:29:05 -0300 |
commit | f8579e9d1019dd6e6629858c3935ffc7bca28eb0 (patch) | |
tree | 6f9411ac63abb68c2d0971430377f3d905ee93f8 | |
parent | 15d71214638c6f7f808b838cfc4215ece0a53101 (diff) | |
download | luarocks-f8579e9d1019dd6e6629858c3935ffc7bca28eb0.tar.gz luarocks-f8579e9d1019dd6e6629858c3935ffc7bca28eb0.tar.bz2 luarocks-f8579e9d1019dd6e6629858c3935ffc7bca28eb0.zip |
Makefile: add work around for environments that default to multiple jobs
Fixes #1638
This Makefile only supports single-job execution and is known to have
race conditions that will fail if targets are run in parallel jobs. With
the proliferation of cores, more and more distributions and host
environments are setting default make flags to run jobs in parallel by
default. We can't do anything about this for old versions of GNU Make,
but for 4.3+ we can actually reset the flag ourselves to only run
a single job so targets run in serial order.
-rw-r--r-- | GNUmakefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile index 9fd4d06b..dade806d 100644 --- a/GNUmakefile +++ b/GNUmakefile | |||
@@ -1,3 +1,4 @@ | |||
1 | MAKEFLAGS += --jobs=1 | ||
1 | 2 | ||
2 | -include config.unix | 3 | -include config.unix |
3 | 4 | ||