You are not logged in.

#1 2007-08-03 22:14:50

miko
Member
From: Poland
Registered: 2006-04-16
Posts: 49

makepkg and many processors

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

#2 2007-08-03 22:45:41

Login_Here
Member
Registered: 2007-06-27
Posts: 24

Re: makepkg and many processors

There is an option for that in /etc/makepkg.conf, just uncomment the MAKEFLAGS-line and change -j to whatever you want.

Offline

#3 2007-08-04 01:43:31

miko
Member
From: Poland
Registered: 2006-04-16
Posts: 49

Re: makepkg and many processors

Login_Here wrote:

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

Board footer

Powered by FluxBB