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 $*
> 

That should be

	exec /path/to/real/gcc -foo -bar "$@"

so that command line quoting is preserved.
R.


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