Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Apr 2003 09:51:56 -0800
From:      "David O'Brien" <obrien@FreeBSD.org>
To:        Ruslan Ermilov <ru@FreeBSD.org>
Cc:        Marcel Moolenaar <marcel@xcllnt.net>
Subject:   Re: GCC_OPTIONS
Message-ID:  <20030404175156.GA20420@dragon.nuxi.com>
In-Reply-To: <20030404172652.GA67714@sunbay.com>
References:  <20030402231638.A81523@FreeBSD.org> <20030403055049.GA67232@dhcp01.pn.xcllnt.net> <20030403180026.A29934@gamplex.bde.org> <20030403085350.GA37174@sunbay.com> <20030403093800.GA68012@dhcp01.pn.xcllnt.net> <20030403200459.H30311@gamplex.bde.org> <20030403160017.GD17860@dragon.nuxi.com> <20030404080746.GC95125@sunbay.com> <20030404163013.GB81938@dragon.nuxi.com> <20030404172652.GA67714@sunbay.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Apr 04, 2003 at 08:26:52PM +0300, Ruslan Ermilov wrote:
> On Fri, Apr 04, 2003 at 08:30:13AM -0800, David O'Brien wrote:
> > On Fri, Apr 04, 2003 at 11:07:46AM +0300, Ruslan Ermilov wrote:
> > > Guess what was in GCC_OPTIONS.  In short, we don't support
> > > GCC_OPTIONS.  It isn't even mentioned in gcc(1) or GNU info
> > > files.
> > 
> > We, FreeBSD, are the ones that added it.  That's why it isn't mentioned
> > in the GNU docs.
> > 
> : revision 1.20
> : date: 2001/05/29 09:54:45;  author: obrien;  state: Exp;  lines: +53 -1
> : Support the environmental var "GCC_OPTIONS".  Which can hold a set of
> : default options for GCC.  These options are interpreted first and can be
> : overwritten by explicit command line parameters.  This provides one way of
> : adding [temporary] options to your world build w/o editing /etc/make.conf.
> 
> So this is only to add temporary options to the default CFLAGS,
> where simple
> 
> 	make CFLAGS="`make -V CFLAGS` -foo -bar"
> 
> would do just fine?  Are there any other reasons behind adding
> this variable?

Say I always want -g, or -save-temps, or any of several other options.
It is easier to add GCC_OPTIONS to ~/.<shell> than always type it on the
command line.  We also have DIFF_OPTIONS, GREP_OPTIONS.  I guess you
don't need to take it into account, but should a weird bug report crop
up, it is something to keep in mind.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030404175156.GA20420>