This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: proposal: Default settings from environment
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Phil Edwards <phil at jaj dot com>
- Cc: Andrew Haley <aph at redhat dot com>, "Neal D. Becker" <nbecker at hns dot com>, gcc at gcc dot gnu dot org, Richard dot Earnshaw at arm dot com
- Date: Wed, 12 Mar 2003 10:43:43 +0000
- Subject: Re: proposal: Default settings from environment
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
> 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.