[arch-general] Can you test machine to set --jobs[=N] from w/i PKGBUILD?

David C. Rankin drankinatty at suddenlinkmail.com
Sun Apr 1 00:59:43 EDT 2012


Guys,

  Is there any way to check the number of cores on a machine to set the number
of jobs within a PKGBUILD?:

make -j'X'

I have some dual-core and some quad-core boxes and the difference between -j2
and -j4 on build time is tremendous. However, for generically creating a source
package to be used by someone else, I can't hardcode the jobs number. Anyway to
test in pkgbuild or is this just a per box makepkg.conf issue?

-- 
David C. Rankin, J.D.,P.E.


More information about the arch-general mailing list