[PATCH] add GCC_OPTIONS
Geoff Keating
geoffk@geoffk.org
Mon Jun 30 03:54:00 GMT 2003
> Date: Sat, 28 Jun 2003 22:35:24 -0700
> From: "David O'Brien" <obrien@FreeBSD.org>
> On Fri, Jun 27, 2003 at 05:07:04PM -0700, Geoff Keating wrote:
> > If you must do something like this, put
> >
> > #!/bin/sh
> > exec /usr/bin/gcc -g $*
> >
> > in the PATH.
>
> This will affect *all* shells/terminals for the given login (if not the
> entire machine).
Yes, it behaves exactly like an environment variable, because PATH is
also an environment variable.
> GNU ld, GNU ls, GNU grep and other GNU utils support environmental
> variables like this and I don't really think it has caused a problem for
> bug reports.
GNU ld, ls, and grep are nowhere near the complexity of GCC.
In any case, a patch like this won't really buy you anything. You
don't want a GCC_OPTIONS variable, you want an OBRIEN_GCC_OPTIONS
variable; otherwise, makefiles will end up setting GCC_OPTIONS
themselves and you'll discover you're in the same position as before.
--
- Geoffrey Keating <geoffk@geoffk.org>
More information about the Gcc-patches
mailing list