There is one exception, -j1 can be used in a PKGBUILD to limit the number of threads, e.g. if the build fails due to some race conditions in the build process.
There is even an option.... Add options=('!makeflags') to the PKGBUILD
]]>Enjoy,
Charles
For your own use, just set -j4 in makepkg.conf on your system.
]]>I just rediscovered option -j in make, that lets make runs parallel jobs. On my computer (4 cores, ssd), it speeds up things.
I was wondering if it was clean/permitted/a good idea to use this in PKGBUILDs, by automatically adjusting the -j parameter to the number of cores, or half the number of cores ?
Cheers,
Charles