You are not logged in.
Hello,
would it be possible to modify default PKGBUILD.proto to take advantage of more than one processor (or processor core) if available?
I think that changing
make || return 1
to
make -j`grep processor /proc/cpuinfo |wc -l` || return 1
can help in most cases (especially for large packages, like kernel, php etc.).
I understand that it will not work for every package (I had some issues with -j in same programs - it did not compile), but I think it is safe for most of them, and can speed up the compilation. What do you think about it?
Regards,
miko
Offline
There is an option for that in /etc/makepkg.conf, just uncomment the MAKEFLAGS-line and change -j to whatever you want.
Offline
There is an opation for that in /etc/makepkg.conf, just uncomment the MAKEFLAGS-line and change -j to whatever you want.
Yes indeed. I must have forgotten about it ;( Thanks,
miko
Offline