On the NFS server
add the following line to /etc/exports (Debian/Ubuntu systems)
/path/to/exported/directory *(rw,no_subtree_check,insecure,no_root_squash)
On the client machine (the one that will compile)
add the following line to /etc/fstab
10.0.2.2:/path/to/exported/directory /path/to/mnt/point nfs user,rw,exec 0 0
Note: replace 10.0.2.2 with the server IP or hostname
Warning: this setup is TOTALLY INSECURE!!
but who cares ;-)