on 06/14/2012 02:05 AM YoYo Siska wrote the following:

> 
> 3. Mount the laptops root filesystem through nfs on the fast computer
> (use no_root_squash on the laptop export to have correct root access to
> files) bind-mount something local (disk or tmpfs if you have enough mem)
> over /var/tmp/portage, chroot into it (don't forget to mount /proc,
> maybe /sys and maybe bind-mount /dev, though that should not be needed
> and don't forget 'linux32 chroot') and run emerges there... you will
> actually be running everything on the fast computer, only the access to
> the laptops disk will be through the network. With a fast network it
> should be a lot faster then working ont the slower notebook (note that
> if you bind-mount /var/tmp/portage inside the chroot, most of the
> compilation will be working with a local disk...) Compared to the distcc
> method, even the configure phases will be much faster...  I do this
> often with my Pentium M 1.6Ghz thinkpad laptop and my quad core amd64
> desktop...

Exactly. I do this too.
You also need to pay attention and set CFLAGS correctly and not to "native".
Like:
CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer"

Reply via email to