From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 21 11:30:01 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D0D3216ACC0 for ; Thu, 21 Dec 2006 11:30:01 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout3.cac.washington.edu (mxout3.cac.washington.edu [140.142.32.166]) by mx1.freebsd.org (Postfix) with ESMTP id 9AB6213C4A9 for ; Thu, 21 Dec 2006 11:30:01 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139] (may be forged)) by mxout3.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id kBL3vLm2030313 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 20 Dec 2006 19:57:21 -0800 X-Auth-Received: from [192.168.0.101] (dsl254-013-145.sea1.dsl.speakeasy.net [216.254.13.145]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id kBL3vK6N016310 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 20 Dec 2006 19:57:20 -0800 Message-ID: <458A0620.5020905@u.washington.edu> Date: Wed, 20 Dec 2006 19:57:20 -0800 From: Garrett Cooper User-Agent: Thunderbird 1.5.0.8 (X11/20061220) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org X-Enigmail-Version: 0.94.1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-PMX-Version: 5.2.2.285561, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2006.12.20.193932 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __LINES_OF_YELLING 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Subject: Properly controlling CFLAGS/CXXFLAGS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Dec 2006 11:30:01 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, Coming from Gentoo we were taught how to 'rice' our machines. Based on my experience though with FreeBSD, this is an improper methodology for one to use. I was wondering (looking at the make.conf manpage), what's the best way to control one's CFLAGS/CXXFLAGS. I'd prefer if only a few ports would have optimized compiler flags, while the rest of the system used a safe set of compiler flags. So, I was wondering what the best course of action for setting variables in /etc/make.conf would be? Is this proper given what I'm trying to accomplish: /etc/make.conf snippet: CFLAGS= -O2 -pipe CXXFLAGS= ${CFLAGS} COPTFLAGS= ${CFLAGS} -msse -msse2 -mfpmath=sse,387 NO_CPU_CFLAGS="YES" NO_CPU_COPTFLAGS="YES" CPUTYPE?=pentium4 TIA! - -Garrett -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFigYgEnKyINQw/HARAgG4AKCWjs2FYuG6isov7DCE1plZTDkslgCcDufT Y64QGayLi0FDKBaT2aS0ZEM= =HOi0 -----END PGP SIGNATURE-----