You are not logged in.

#1 2011-04-19 10:42:04

shadyabhi
Member
From: Bangalore
Registered: 2010-05-23
Posts: 262
Website

[SOLVED] Make "make" use 4 jobs by default while compiling stuff

I just compiled vidalia with 1 job, and then with 4 jobs. (with 1 job, it rakes 2.7 times the time taken with 4 jobs)
Compiling with 1 job:

real    2m42.293s
user    2m19.494s
sys     0m21.199s

Compiling with 4 jobs:

real    0m59.437s
user    2m28.377s
sys     0m25.388s

If I am compiling stuff from terminal, I can simply do that by making an alias "alias make="make -j 4" but "makepkg" doesnt respect that.
Any idea on how can I always compile stuff with 4 jobs even thought the PKGBUILD says to use "make" but I actually want "make -j 4".

Last edited by shadyabhi (2011-04-19 11:14:45)

Offline

#2 2011-04-19 10:55:10

defears
Member
Registered: 2010-07-26
Posts: 218

Re: [SOLVED] Make "make" use 4 jobs by default while compiling stuff

 sudo nano /etc/makepkg.conf

Scroll down and uncomment and change.

Offline

#3 2011-04-19 11:14:27

shadyabhi
Member
From: Bangalore
Registered: 2010-05-23
Posts: 262
Website

Re: [SOLVED] Make "make" use 4 jobs by default while compiling stuff

defears wrote:
 sudo nano /etc/makepkg.conf

Scroll down and uncomment and change.

Oh. Even I too opened that file in vim and searched for "make" and got nothing interesting. Actually, it was capital "MAKEFLAGS".
Adding this to /etc/makepkg.conf did the job. Thanks.

MAKEFLAGS="-j 4"

Last edited by shadyabhi (2011-04-19 11:17:15)

Offline

Board footer

Powered by FluxBB