You are not logged in.

#1 2021-03-04 15:21:38

floreal
Member
Registered: 2020-06-19
Posts: 7

[Solved] PKGBUILD, build() and parallelizable make operations

Hello,
I notice that make is rarely used with -j options to parallelize build steps. which can result in a VERRY long build even on an 8 core and fast CPU (for example for package linux-rt{,-lts}).
Is there any issue in guessing how many processors and trying to prallelize builds with make while in another hand cargo build tool parallelizes?
If I create my own make based PKGBUILD should I keep unparallelized or ont?

Last edited by floreal (2021-03-05 14:24:48)

Offline

#2 2021-03-04 15:22:48

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,466

Re: [Solved] PKGBUILD, build() and parallelizable make operations

You should NOT use -j, unless it's -j1 for builds that don't work in parallel. You should be setting MAKEFLAGS in makepkg.conf

Offline

#3 2021-03-04 15:27:06

floreal
Member
Registered: 2020-06-19
Posts: 7

Re: [Solved] PKGBUILD, build() and parallelizable make operations

Oh! Thanks! I think I understand. That would let the user customize make options. I was unaware of this makepkg.conf

Offline

#4 2021-03-04 15:53:04

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [Solved] PKGBUILD, build() and parallelizable make operations


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB