From owner-freebsd-questions@FreeBSD.ORG Fri Nov 24 16:58:46 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 60EAC16A504 for ; Fri, 24 Nov 2006 16:58:46 +0000 (UTC) (envelope-from heroh@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 6DB1D43D91 for ; Fri, 24 Nov 2006 16:58:02 +0000 (GMT) (envelope-from heroh@gmx.de) Received: (qmail invoked by alias); 24 Nov 2006 16:58:43 -0000 Received: from e178220048.adsl.alicedsl.de (EHLO trabant.home) [85.178.220.48] by mail.gmx.net (mp042) with SMTP; 24 Nov 2006 17:58:43 +0100 X-Authenticated: #31543762 From: Helge Rohde To: freebsd-questions@freebsd.org Date: Fri, 24 Nov 2006 16:58:13 +0000 User-Agent: KMail/1.9.4 References: <200611241640.kAOGeLZk031090@asarian-host.net> In-Reply-To: <200611241640.kAOGeLZk031090@asarian-host.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200611241658.13447.heroh@gmx.de> X-Y-GMX-Trusted: 0 Subject: Re: GCC upgrade 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: Fri, 24 Nov 2006 16:58:46 -0000 On Friday 24 November 2006 16:40, Mark wrote: > > -----Original Message----- > > From: Kris Kennaway [mailto:kris@obsecurity.org] > > Sent: vrijdag 24 november 2006 17:11 > > To: Mark > > Cc: freebsd-questions@freebsd.org > > Subject: Re: GCC upgrade > > > > > I tested the new gcc, btw (compiled MySQL server with > > > it, which takes quite a while). Seems to work fine. > > > But I'm not enough of a C expert to know precisely how > > > to do a safe upgrade of this kind. > > > > If you're not an expert then just leave it alone. Replacing > > the system compiler might sound like a cool thing to do, but > > what will actually happen is that you'll make your FreeBSD > > system unbuildable. > > Guess I hadn't thought about it that way. Good thinking. > It's just that 2.95.4 seems so ancient. :) > > Only reason I wanted to in the first place, is that I've had several > ports that wanted a 3.x series gcc (and kept wanting to build one). > > Thanks, You could leave the default in place, define a different gcc for the ports in /etc/make.conf and then just add to the list of excludes every time you run into problems while building a port. Thats what i do, and so far roughly 80% of the ports seem quite content with gcc4.2 If that sounds cool to you, checkout this sample make.conf out of some german Howto. You wont need knowledge of german, Its self explaining enough. http://wiki.bsdforen.de/index.php/Make.conf_optimieren#.2Fetc.2Fmake.conf have fun, Helge