This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: compile with no prefix
On 3/29/08, Ian Lance Taylor <iant@google.com> wrote:
> "George Neill" <georgen@neillnet.com> writes:
>
> > Is it possible to configure/build gcc with no prefix? I'd like to
> > build a version which I can tarball up and drop anywhere on the
> > filesystem.
>
> You should always configure it with a prefix. But if you wrap up the
> whole directory structure under that prefix and put it somewhere else,
> gcc will still be able to run and to find its supporting programs.
The documentation should be updated in the --with-[build-]sysroot
section. It claims that there's only a specific way to have a
relocatable tree. I have found as you say that the installation
prefix is very easily relocatable, contrary to the documentation.