From owner-freebsd-questions Fri Mar 31 16:23: 5 2000 Delivered-To: freebsd-questions@freebsd.org Received: from weeble.dyndns.org (ubppp233-236.dialin.buffalo.edu [128.205.233.236]) by hub.freebsd.org (Postfix) with ESMTP id 2170937B5D8 for ; Fri, 31 Mar 2000 16:22:56 -0800 (PST) (envelope-from cjm2@earthling.net) Received: from shithead (shithead.weeble.dyndns.org [10.0.0.2]) by weeble.dyndns.org (8.9.3/8.9.3) with SMTP id TAA51808; Fri, 31 Mar 2000 19:22:55 -0500 (EST) (envelope-from cjm2@earthling.net) From: "C J Michaels" To: "Conrad Sabatier" Cc: "FreeBSD questions" Subject: RE: /etc/make.conf Date: Fri, 31 Mar 2000 19:22:54 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm sorry to have to ask. What's a profiled library anyway? Thanks -Chris -----Original Message----- From: owner-freebsd-questions@FreeBSD.ORG [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Conrad Sabatier Sent: Thursday, March 30, 2000 1:17 PM To: Sheldon Hearn Cc: FreeBSD questions; David J. Kanter Subject: Re: /etc/make.conf On 30-Mar-00 Sheldon Hearn wrote: > > > On Thu, 30 Mar 2000 05:00:48 CST, "David J. Kanter" wrote: > >> Which flags, if any, do people recommend I set in /etc/make.conf, >> keeping in mind that I'm a home-PC user? > > The compiler flags officially supported within the project are: > > CFLAGS='-O -pipe' > > COPTFLAGS='-O -pipe' > > More aggressive optimizations may be possible, but you're on your own > trying to get support later if something goes wrong, whether or not it's > related to the optimizations. :-) > >> Should I keep these flags set all the time, so that all "make"s can be >> done with the options, or are they just necessary when doing a make >> world? And is it bad form to make some things with the options and >> other things without? > > It is common practise to leave CFLAGS and COPTFLAGS defined as above in > /etc/make.conf at all times. I use: CFLAGS= -02 -pipe -m486 COPTFLAGS= -O -pipe Ths first adds a little more optimization for ordinary builds, such as the ports collection. The second is the recommended setting for the kernel. There are a few other useful settings besides: # Avoid compiling profiled libraries NOPROFILE= true The average user has no use for these anyway, and you can save a little time and disk space by not compiling them when doing a "make world". If you've installed the Lesstif port: HAVE_MOTIF= yes If you're a USA resident (certain ports check the setting of this variable): USA_RESIDENT=YES Another setting I find very useful is: FORCE_PKG_REGISTER= YES This will force a port to install and register itself when you do a "make install", even if it's already installed. Last but not least, if you use cvsup to update your sources and/or ports collection: SUP_UPDATE= yes # SUP= /usr/local/bin/cvsup SUPFLAGS= -g -L 2 SUPFILE= ${STABLESUPFILE} CURRENTSUPFILE= /root/current-supfile STABLESUPFILE= /root/stable-supfile DOCSUPFILE= /root/doc-supfile PORTSSUPFILE= /root/ports-supfile I've defined a few extra variables here (CURRENT..., STABLE..., DOC..., PORTS...). THE DOC and PORTS supfiles enable you to go to either /usr/doc or /usr/ports and do a "make update" to cvsup the latest changes. CURRENT and STABLE are just some aliases I created; the name that's actually used is, of course, just plain old SUPFILE. This, like DOC and PORTS, enables you to go to /usr/src and do "make update". Hope this helps. -- Conrad Sabatier http://members.home.net/conrads/ ICQ# 1147270 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message