You are not logged in.
Hello,
someone suggest I use make -j`nproc`" in the PKGBUILD of my AUR package. However, I wonder what the correct way is to parallelize compilation? Shouldn't the user just set MAKEFLAGS="-j4" in his /etc/makepkg.conf?
What is the canonical way? Modify my PKGBUILD or does MAKEFLAGS automatically affects the AUR builds?
Thanks!
Offline
Offline
Just set variable MAKEFLAGS locally in your ~/.makepkg.conf as you wrote.
Last edited by Fixxer (2017-02-05 11:03:06)
Offline
You'd want to put the flags in your PKGBUILD if your package needed specific compiling flags. Think along the lines of overriding potentially insane flags set by users that may be incompatible.
Offline