Subject: using BUILD_MAKE_FLAGS with distcc
To: None <netbsd-users@NetBSD.org>
From: iMil <imil@home.imil.net>
List: netbsd-users
Date: 07/18/2004 17:34:17
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hi list,

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+ph8FG3BlGWyzUIRAszGAJ9nVMjPHlWO/XABs7WtkppMxpQX2wCfbpP8
Ke1nDUq8wmzMTMNLcRCnudo=
=lnfp
-----END PGP SIGNATURE-----