From owner-freebsd-ports@FreeBSD.ORG Thu Aug 10 19:24:57 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E149916A4DA for ; Thu, 10 Aug 2006 19:24:57 +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 C8E7643D45 for ; Thu, 10 Aug 2006 19:24:56 +0000 (GMT) (envelope-from LoN_Kamikaze@gmx.de) Received: (qmail invoked by alias); 10 Aug 2006 19:24:55 -0000 Received: from p54A7CD74.dip.t-dialin.net (EHLO [192.168.0.12]) [84.167.205.116] by mail.gmx.net (mp019) with SMTP; 10 Aug 2006 21:24:55 +0200 X-Authenticated: #5465401 Message-ID: <44DB87FA.4020505@gmx.de> Date: Thu, 10 Aug 2006 21:24:42 +0200 From: "[LoN]Kamikaze" Organization: Lords of Nightmare User-Agent: Thunderbird 1.5.0.5 (X11/20060729) MIME-Version: 1.0 To: Stanislav Sedov References: <44DB5692.6040005@gmx.de> <20060810214516.7e0ff056@localhost> <44DB72FC.8010009@gmx.de> <20060810224838.639c57e8@localhost> In-Reply-To: <20060810224838.639c57e8@localhost> 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-ports@freebsd.org Subject: Re: ports without configure do not receive CC X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Aug 2006 19:24:58 -0000 Stanislav Sedov wrote: > On Thu, 10 Aug 2006 19:55:08 +0200 > "[LoN]Kamikaze" mentioned: >> Try that one in your make.conf: >> >> .if ${CURDIR:M/usr/ports/*} >> CC= distcc cc >> CXX= distcc c++ >> .endif >> >> WRKDIRPREFIX=/usr/obj >> > > Your real problem is WRKDIRPREFIX. When do-build target is executed, > CURDIR isn't /usr/ports/.* but /usr/obj/usr/ports/.*. > Thus, your problem could be solved by replacing > ${CURDIR:M/usr/ports/*} with ${CURDIR:Musr/ports/*} > > No need to modify bsd.port.mk > That leads to no end of problems if you have different settings for different ports, because a port gets its specific settings and will later override them with the settings that are set for all ports.