From owner-freebsd-questions@FreeBSD.ORG Thu Mar 13 09:32:54 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0CFA9106566C for ; Thu, 13 Mar 2008 09:32:54 +0000 (UTC) (envelope-from Luca.Presotto@cern.ch) Received: from cernmxlb.cern.ch (cernmx08.cern.ch [137.138.166.172]) by mx1.freebsd.org (Postfix) with ESMTP id 9B5898FC28 for ; Thu, 13 Mar 2008 09:32:53 +0000 (UTC) (envelope-from Luca.Presotto@cern.ch) Keywords: CERN SpamKiller Note: -49 Charset: west-latin X-Filter: CERNMX08 CERN MX v2.0 060921.0942 Release Received: from cernxchg46.cern.ch ([137.138.137.154]) by cernmxlb.cern.ch with Microsoft SMTPSVC(6.0.3790.1830); Thu, 13 Mar 2008 10:32:51 +0100 Received: from cernfe13.cern.ch ([137.138.140.38]) by cernxchg46.cern.ch with Microsoft SMTPSVC(6.0.3790.1830); Thu, 13 Mar 2008 10:32:51 +0100 Received: from lxplus217.cern.ch (137.138.4.38) by smtp.cern.ch (137.138.140.59) with Microsoft SMTP Server (TLS) id 8.1.240.5; Thu, 13 Mar 2008 10:32:51 +0100 Date: Thu, 13 Mar 2008 10:32:47 +0100 From: Luca Presotto X-X-Sender: presotto@lxplus217.cern.ch To: Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-OriginalArrivalTime: 13 Mar 2008 09:32:51.0729 (UTC) FILETIME=[355A6010:01C884ED] Subject: Tuning make.conf X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Mar 2008 09:32:54 -0000 Hi everyone! I was starting to think to recompile everything for my pc to speed up everything. I started googling and I found almost nothing about how to change make.conf on bsd. Almost everything was about Gentoo, somehow not unsurprisingly. The first thing I noticed is that for linux all the instructions are about doing CFLAGS=" value" while it seems from /etc/share/examples/make.conf that in bsd I don't need ". Is it correct? Second question: If I set MAKEOPTS= -j 3 will that be used when portupgrading? (It's really to slow otherwise!) Third question...The most difficult..Which are the best flags for my machine? (freebsd 7.0-RELEASE with an intel centrino core2 duo) I have seen in the ..../examples/etc/make.conf that one of the possible "CPUTYPE" is core2 which looks to me as the right one but a geekier friend of mine that lives inside gentoo-linux told me that this option is unknown is gcc 4.2 and will be working from gcc4.3, so he told me to use "prescott". And what do I have to set to make gcc aware of the type of CPU I have? CPUTYPE= cpu and then CFLAGS= --O2 -pipe (etc..) or should I not write the cputype and then do: CLFAGS= -march=mycpu --O2 etc.... Can someone give me some advice on how to configure this file? Or can you provide me some documentation? Thank you!