From owner-freebsd-questions@FreeBSD.ORG Sun Nov 26 09:28:18 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 E649616A403 for ; Sun, 26 Nov 2006 09:28:18 +0000 (UTC) (envelope-from LoN_Kamikaze@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 1155A43D4C for ; Sun, 26 Nov 2006 09:27:24 +0000 (GMT) (envelope-from LoN_Kamikaze@gmx.de) Received: (qmail invoked by alias); 26 Nov 2006 09:28:15 -0000 Received: from p54A7DD19.dip.t-dialin.net (EHLO [192.168.0.12]) [84.167.221.25] by mail.gmx.net (mp039) with SMTP; 26 Nov 2006 10:28:15 +0100 X-Authenticated: #5465401 Message-ID: <45695E7C.8040006@gmx.de> Date: Sun, 26 Nov 2006 10:29:32 +0100 From: "[LoN]Kamikaze" Organization: Lords of Nightmare User-Agent: Thunderbird 1.5.0.8 (X11/20061110) MIME-Version: 1.0 To: Mark References: <200611260905.kAQ95BcY091634@asarian-host.net> In-Reply-To: <200611260905.kAQ95BcY091634@asarian-host.net> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Cc: freebsd-questions@freebsd.org 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: Sun, 26 Nov 2006 09:28:19 -0000 Mark wrote: > One question, though: > > ..if ${.CURDIR:M*/ports/*} && !${.CURDIR:M*/work/*} > > Why would you NOT want to use the new gcc when in a /work/ directory? > (where ports builds). > > Thanks, > > - Mark This is because these settings are processed in the ports framework and overwriting whatever became of them in the process by applying them to make calls from the working directory might break something. By the way (inserting shameless advertisement), if you find the make syntax clumsy for configuring ports and portsconf too restrictive, you might want to have a look at buildflags from the sysutils/bsdadminscripts ports. It offers a more compact syntax (that actually will be parsed into make syntax) and certain knobs, that make handling several compilers, ccache, distcc and parallel building '-j' easier.