ports without configure do not receive CC

[LoN]Kamikaze LoN_Kamikaze at gmx.de
Thu Aug 10 17:55:28 UTC 2006


Stanislav Sedov wrote:
> On Thu, 10 Aug 2006 17:53:54 +0200
> "[LoN]Kamikaze" <LoN_Kamikaze at gmx.de> 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.


More information about the freebsd-ports mailing list