gcc --prefix in chrooted environment

Ian Lance Taylor iant@google.com
Sun Mar 27 09:14:00 GMT 2011


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



More information about the Gcc-help mailing list