Re: Replacing built-in commands
- From: loozadroog <mijoryx@xxxxxxxxx>
- Date: Fri, 17 Dec 2010 22:43:46 -0800 (PST)
On Dec 16, 7:53 pm, Jeffrey Walton <noloa...@xxxxxxxxx> wrote:
Hi All,
I'm working on a project where I must build a makefile using an
alternate gcc. Currently, the makefile is calling /usr/bin/gcc. I need
the makefile to call /Alternate/GCC/Path/gcc.
I cannot alter the makefile such that 'CC=/Alternate/GCC/Path/gcc'. If
I alter the makefile, the code will fail an audit.
I can alter the environment. How can I point gcc to /Alternate/GCC/
Path/gcc so that the following (in the makefile) works as desired:
CC=gcc
So far, I have not had a any luck with altering and exporting $PATH;
or using setenv PATH ...
Thanks in advance,
Jeff
Ooh. I've got one!
You could copy the directory somewhere else; replace gcc in your copy;
mount your copy over the original.
unmount, rm, rmdir to clean up.
.
- References:
- Replacing built-in commands
- From: Jeffrey Walton
- Replacing built-in commands
- Prev by Date: Re: Replacing built-in commands
- Next by Date: Re: Replacing built-in commands
- Previous by thread: Re: Replacing built-in commands
- Next by thread: Re: Replacing built-in commands
- Index(es):
Relevant Pages
|