This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: proposal: Default settings from environment


On Tue, Mar 11, 2003 at 06:03:53PM +0000, Andrew Haley wrote:
> 
> I'm a bit mystified by this.  Why can't you use $CC instead of gcc,
> with $CC set to "gcc arg arg..."  ?

More generally, make a script called gcc that looks like this

    #!/bin/sh

    exec /path/to/real/gcc -foo -bar $*

Using $CC won't work for all makefiles.  Using aliases won't work for
any makefiles.  Having a "real" executable on the path will work in all
situations, even what that executable is just a wrapper script.

Even in this case, please modify the "real" gcc sources to emit a different
bug reporting address and URL.


Phil

-- 
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace.  We seek
not your counsel, nor your arms.  Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen.            - Samuel Adams


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]