gcc_tooldir

Daniel Jacobowitz drow@mvista.com
Fri Sep 12 22:02:00 GMT 2003


On Fri, Sep 12, 2003 at 11:20:36PM +0200, Marcus Comstedt wrote:
> 
> "H. J. Lu" <hjl@lucon.org> writes:
> 
> > You can relocate the whole gcc to a different direcory since everything
> > is referenced relatively. That is even if you configured gcc with
> > --prefix=foo, you can move it "bar" and it should work fine.
> 
> That's assuming you're using a relative path as $prefix, which means
> that the compiler will only work if your cwd is a particular directory
> when you run it.  Doesn't sound very useful.  If you use an absolute
> path as prefix, then $(gcc_tooldir) will also be an absolute path, and
> moving gcc will not work.

Have you tried it?

I've been testing relocation every release since 3.1, and it does work.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer



More information about the Gcc mailing list