> I have several Gentoo, Debian and SuSE boxes. I want to set up compiler
> pool (using distcc) for Gentoo compilation. To do this, I plan to build
> gcc from sources which I got from /usr/portage/distfiles, on Debian and
> Suse. I have some questions:
> 
> 1. I think I should also apply Gentoo patches, so that gcc will produce
> the same code on all machines. Should I apply all of patches (there are
> some which are not related to i386 platform)? In which order?
> 
> 2. Where can I get 'configure' options which were used for compiling gcc
> on gentoo?

If you issue the command:

        $ ebuild gcc-blah-blah.ebuild unpack

from your /usr/portage/sys-devel/gcc directory, it will expand and apply
patches in /var/tmp/gcc-.../work directory.  From there you will have a
source base with all gentoo patches applied in the appropriate order.  See
other options (besides unpack) from "man ebuild" to have it do this and
configure, that way you can see the output from config.log to determine what
options were passed to the configure script.

Now whether this is a good idea to use on the debian/suse systems is another
question...  You wouldn't want to overwrite the gcc on those systems because
it might break things, you'd probably want to relocate the gcc build to
isolate it from the working versions.  And the distcc build on those systems
would need to be reworked to target the localized gcc...



--
[email protected] mailing list

Reply via email to