This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc --prefix in chrooted environment
Michael Zintakis <michael.zintakis@googlemail.com> writes:
> If I compile gcc (using
> "--prefix=${HOME}/gcc-test/install/install-ppc/usr") and later on
> install it in "${HOME}/gcc-test/install/install-ppc", then do the same
> with the associated libraries gcc uses (glibc, mpfr etc) and then
> "chroot ${HOME}/gcc-test/install/install-ppc" and try to run gcc as
> normal (i.e. compile the packages I want to install on that "root")
> would that work even though I compiled and installed gcc with a
> different prefix?
That is supposed to work, yes. You'll have to see if it really does
work....
Ian