This is the mail archive of the
crossgcc@cygnus.com
mailing list for the crossgcc project.
Re: GNU toolchain working in other directories ?
- To: crossgcc@cygnus.com
- Subject: Re: GNU toolchain working in other directories ?
- From: Jeffrey A Law <law@cygnus.com>
- Date: Thu, 08 Jul 1999 23:08:33 -0600
- Reply-To: crossgcc@cygnus.com
In message <199907090026.UAA08595@light.lexra.com>you write:
>
> > > Is it possible to make it work in any
> > > directory with just changing some environment variables ?
> > > Thanks
> > GCC_EXEC_PREFIX
>
> For those who use this technique. How do you avoid conflict
> with any number of GNU compilers that you might also use
> in the same environment? i.e. The native GNU C compiler will
> also use this environment variable.
Nothing good that I'm aware of.
One could make an alias for the various compilers which first sets a
suitable GCC_EXEC_PREFIX, calls the desired compiler, then unsets
GCC_EXEC_PREFIX or something like that.
Another approach is to use the -B argument to the compiler, which (effectively)
allows you to specify a prefix on the command line.
jeff
_______________________________________________
New CrossGCC FAQ: http://www.objsw.com/CrossGCC
_______________________________________________
To remove yourself from the crossgcc list, send
mail to crossgcc-request@cygnus.com with the
text 'unsubscribe' (without the quotes) in the
body of the message.