From owner-cvs-all@FreeBSD.ORG Fri Apr 4 09:52:12 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4C9C137B404; Fri, 4 Apr 2003 09:52:12 -0800 (PST) Received: from dragon.nuxi.com (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id B9E4143F75; Fri, 4 Apr 2003 09:52:10 -0800 (PST) (envelope-from obrien@NUXI.com) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.12.9/8.12.7) with ESMTP id h34HpwD0020470; Fri, 4 Apr 2003 09:51:58 -0800 (PST) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.9/8.12.9/Submit) id h34HpuF1020469; Fri, 4 Apr 2003 09:51:56 -0800 (PST) Date: Fri, 4 Apr 2003 09:51:56 -0800 From: "David O'Brien" To: Ruslan Ermilov Message-ID: <20030404175156.GA20420@dragon.nuxi.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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030404172652.GA67714@sunbay.com> User-Agent: Mutt/1.4i X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 cc: src-committers@FreeBSD.org cc: Bruce Evans cc: Juli Mallett cc: cvs-src@FreeBSD.org cc: cvs-all@FreeBSD.org cc: Marcel Moolenaar Subject: Re: GCC_OPTIONS X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: obrien@FreeBSD.org List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2003 17:52:12 -0000 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 ~/. 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.