You are not logged in.

#1 2017-02-05 10:53:20

Osiris
Member
Registered: 2003-01-18
Posts: 153
Website

make -j X or MAKEFLAGS

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

#2 2017-02-05 11:01:27

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,365
Website

Re: make -j X or MAKEFLAGS

MAKEFLAGS is the way to do it.

Offline

#3 2017-02-05 11:02:21

Fixxer
Member
From: Poland
Registered: 2011-08-29
Posts: 210

Re: make -j X or MAKEFLAGS

Just set variable MAKEFLAGS locally in your ~/.makepkg.conf as you wrote.

Last edited by Fixxer (2017-02-05 11:03:06)

Offline

#4 2017-02-05 16:13:54

Chocopuff
Member
Registered: 2016-10-02
Posts: 26

Re: make -j X or MAKEFLAGS

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

Board footer

Powered by FluxBB