From owner-freebsd-arch Tue May 29 4: 2:58 2001 Delivered-To: freebsd-arch@freebsd.org Received: from obsecurity.dyndns.org (adsl-63-207-60-66.dsl.lsan03.pacbell.net [63.207.60.66]) by hub.freebsd.org (Postfix) with ESMTP id 5F42F37B446; Tue, 29 May 2001 04:02:52 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 3C22B66D37; Tue, 29 May 2001 04:02:51 -0700 (PDT) Date: Tue, 29 May 2001 04:02:50 -0700 From: Kris Kennaway To: "David E. O'Brien" Cc: arch@FreeBSD.org Subject: Overriding compiler flags (Re: cvs commit: src/contrib/gcc.295 gcc.c) Message-ID: <20010529040250.A81586@xor.obsecurity.org> Reply-To: arch@FreeBSD.org References: <200105290954.f4T9skF86521@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="3V7upXqbjpZ4EhLz" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200105290954.f4T9skF86521@freefall.freebsd.org>; from obrien@FreeBSD.org on Tue, May 29, 2001 at 02:54:46AM -0700 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --3V7upXqbjpZ4EhLz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 29, 2001 at 02:54:46AM -0700, David E. O'Brien wrote: > obrien 2001/05/29 02:54:46 PDT >=20 > Modified files: > contrib/gcc.295 gcc.c=20 > Log: > 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.co= nf. Hmm. We now have a number of ways of achieving this (some of these only work in some contexts): Defining CFLAGS with ?=3D instead of =3D in /etc/make.conf COPTS in CWARNFLAGS in (included from ) DEBUG_FLAGS in The latter three obviously don't cover general code, but the plethora of options is starting to get ugly. Kris --3V7upXqbjpZ4EhLz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.5 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7E4HZWry0BWjoQKURAnIQAKDqrc9kJy7dKWGt9SMCP9fHIoxapQCffkGp H3q41MvVsRweHdSy/zc6xjU= =8vBq -----END PGP SIGNATURE----- --3V7upXqbjpZ4EhLz-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message