Re: Replacing built-in commands



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.

.



Relevant Pages

  • Re: Replacing built-in commands
    ... the makefile is calling /usr/bin/gcc. ... I alter the makefile, the code will fail an audit. ... How can I point gcc to /Alternate/GCC/ ...     CC=gcc ...
    (comp.os.linux.development.apps)
  • Gnomba Compile Error
    ... rm -f Makefile gnomba.spec ... Making distclean in src ... Making distclean in intl ... checking for gcc... ...
    (Ubuntu)
  • Re: Any makefile gurus out there?
    ... When running the make, the output file has ... Change gcc to g++ in the makefile at that point. ... Gcc is only acting as a caller to the linker ...
    (comp.os.linux.development.system)
  • Re: writing to a partition
    ... gcc biosdata.S leads to error messages beginning: ... You did not use the correct command from Makefile to translate. ... whereas running as86 on biosdata.S produces 68 errors. ...
    (comp.os.linux.misc)
  • Changing a makefile from CC to gcc
    ... use gcc in order to compile some code. ... But until now I didn't had any success in being able to compile it ... The original Makefile contains the following flags: ... The gcc Makefile that I'm trying create is using the following flags: ...
    (comp.lang.cpp)