Subject: using BUILD_MAKE_FLAGS with distcc
To: None <tech-pkg@netbsd.org>
From: iMil <imil@home.imil.net>
List: tech-pkg
Date: 07/19/2004 09:37:53
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi list, (this has already been posted to netbsd-users but I've been
asked to re-post at tech-pkg... that makes sense :)
I may be wrong but it seems that pkgsrc, even if it can use distcc as its
compiler, is not capable of handling directly the -j <maxjobs> flag so
compilation is really dispatched among hosts. In fact, I realized that the
build itself do support parallelizing compilation, so I figured out the
BUILD_MAKE_FLAGS macro which exists on bsd.pkg.mk's "do-build:" target.
And then I added
BUILD_MAKE_FLAGS=-j 2
to my /etc/mk.conf and it works perfectly. I did monitored compilation
with distccmon-text and it effectively is distributed among both machines.
Full process is described here : http://imil.net/docs/pkgsrc+distcc.txt
comments ?
regards,
- -------------------------
iMil <imil@home.imil.net> _
http://gcu-squad.org ASCII ribbon campaign ( )
- against HTML email X
& vCards / \
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
iD8DBQFA+3pUFG3BlGWyzUIRAu+xAJ97/sm+kq9WN6G4bb9tSJYkQhX2ZwCeII9I
aD5gBVnBlovhhbajGs/BHM0=
=sBdP
-----END PGP SIGNATURE-----