The patch below should help in cross-compiling root (and is hence very useful with distcc too). Index: root-5.22.00-r1.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.22.00-r1.ebuild,v retrieving revision 1.1 diff -u -B -r1.1 root-5.22.00-r1.ebuild --- root-5.22.00-r1.ebuild 6 Apr 2009 22:33:43 -0000 1.1 +++ root-5.22.00-r1.ebuild 8 Apr 2009 19:36:50 -0000 @@ -146,6 +146,8 @@ src_configure() { # the configure script is not the standard autotools ./configure \ + --with-cc=$(tc-getCC) \ + --with-cxx=$(tc-getCXX) \ --fail-on-missing \ --prefix=/usr \ --libdir=/usr/$(get_libdir)/${PN} \
Or we go all the way and provide the canonical toolchain commands for every of the four tools: Index: root-5.22.00-r1.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.22.00-r1.ebuild,v retrieving revision 1.1 diff -u -B -r1.1 root-5.22.00-r1.ebuild --- root-5.22.00-r1.ebuild 6 Apr 2009 22:33:43 -0000 1.1 +++ root-5.22.00-r1.ebuild 9 Apr 2009 00:53:06 -0000 @@ -146,6 +146,10 @@ src_configure() { # the configure script is not the standard autotools ./configure \ + --with-cc=$(tc-getCC) \ + --with-cxx=$(tc-getCXX) \ + --with-f77=$(tc-getFC) \ + --with-ld=$(tc-getLD) \ --fail-on-missing \ --prefix=/usr \ --libdir=/usr/$(get_libdir)/${PN} \
Applied in 5.22.00-r1 and 5.20.00 (not the getLD). Thanks.