Date: Tue, 29 May 2001 04:02:50 -0700 From: Kris Kennaway <kris@obsecurity.org> To: "David E. O'Brien" <obrien@FreeBSD.org> Cc: arch@FreeBSD.org Subject: Overriding compiler flags (Re: cvs commit: src/contrib/gcc.295 gcc.c) Message-ID: <20010529040250.A81586@xor.obsecurity.org> In-Reply-To: <200105290954.f4T9skF86521@freefall.freebsd.org>; from obrien@FreeBSD.org on Tue, May 29, 2001 at 02:54:46AM -0700 References: <200105290954.f4T9skF86521@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <bsd.prog.mk> CWARNFLAGS in <bsd.sys.mk> (included from <bsd.{kmod,lib,prog}.mk>) DEBUG_FLAGS in <bsd.{lib,prog}.mk> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010529040250.A81586>