svn commit: r290417 - head

Bryan Drewery bdrewery at FreeBSD.org
Sat Nov 7 01:00:53 UTC 2015


On 11/6/2015 4:56 PM, Bryan Drewery wrote:
> On 11/5/2015 1:48 PM, Warner Losh wrote:
>> -.include "share/mk/src.opts.mk"
>> -.include <bsd.arch.inc.mk>
>> -.include <bsd.compiler.mk>
> 
> Fun fact, src.opts.mk is already including bsd.compiler.mk so it being
> here is redundant (since r263953 removed direct checks in
> COMPILER_TYPE/VERSION).
> 
>> +# Cross toolchain changes must be in effect before bsd.compiler.mk
>> +# so that gets the right CC, and pass CROSS_TOOLCHAIN to submakes.
>> +.if defined(CROSS_TOOLCHAIN)
>> +LOCALBASE?=	/usr/local
>> +.include "${LOCALBASE}/share/toolchains/${CROSS_TOOLCHAIN}.mk"
>> +CROSSENV+=CROSS_TOOLCHAIN="${CROSS_TOOLCHAIN}"
>> +.endif
>> +.include <bsd.compiler.mk>		# don't depend on src.opts.mk doing it

That explains this comment. It was obscure to me.

>> +.include "share/mk/src.opts.mk"	
> 
> 


-- 
Regards,
Bryan Drewery

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20151106/f3d339db/attachment.bin>


More information about the svn-src-all mailing list