ports without configure do not receive CC

[LoN]Kamikaze LoN_Kamikaze at gmx.de
Thu Aug 10 19:24:58 UTC 2006



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


More information about the freebsd-ports mailing list