From owner-freebsd-ports@FreeBSD.ORG Thu Aug 10 17:55:28 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 C3FB216A5BE for ; Thu, 10 Aug 2006 17:55:28 +0000 (UTC) (envelope-from LoN_Kamikaze@gmx.de) Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 86A2943D5F for ; Thu, 10 Aug 2006 17:55:21 +0000 (GMT) (envelope-from LoN_Kamikaze@gmx.de) Received: (qmail invoked by alias); 10 Aug 2006 17:55:19 -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 19:55:19 +0200 X-Authenticated: #5465401 Message-ID: <44DB72FC.8010009@gmx.de> Date: Thu, 10 Aug 2006 19:55:08 +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> In-Reply-To: <20060810214516.7e0ff056@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 17:55:28 -0000 Stanislav Sedov wrote: > On Thu, 10 Aug 2006 17:53:54 +0200 > "[LoN]Kamikaze" mentioned: > >> Ports that do not set CC in their configure target don't get informed about the value of CC because it is only appended to MAKE_ENV for the configure target. > > I think it doesn't present a big problem for i don't know a single > port that sets up value of CC variable in it's Makefile. Thus, we > have only 3 scenarios: > 1) CC is set up on make commandline (e.g. make CC=xxx). In that case > make program will export value of CC to enviropment and every > make program executed will receive it > 2) CC is exported to sheel enviropment. This case is obvious. > 3) CC was defined in make.conf. In that case if GNU make isn't used > in do-build stage make will re-read make.conf and, thus, honor CC's > value. I think we should not consider GNU make's case - it's used > much less often, than our original make program. Try that one in your make.conf: .if ${CURDIR:M/usr/ports/*} CC= distcc cc CXX= distcc c++ .endif WRKDIRPREFIX=/usr/obj You'll see that in this case it is an issue. And that's exactly how my systems are set up.