svn commit: r353639 - head/share/mk

Bryan Drewery bdrewery at FreeBSD.org
Wed Oct 16 19:05:41 UTC 2019


On 10/16/2019 10:18 AM, Brooks Davis wrote:
> On Wed, Oct 16, 2019 at 01:20:36PM +0000, Warner Losh wrote:
>> Author: imp
>> Date: Wed Oct 16 13:20:36 2019
>> New Revision: 353639
>> URL: https://svnweb.freebsd.org/changeset/base/353639
>>
>> Log:
>>   bsd.compat.mk isn't setup to be included outside of Makefile.inc so comment it
>>   out here until that's sorted out. Otherwise the build is broken. when
>>   TARGET_ARCH isn't defined.
> 
> Thanks for committing this workaround.  I forgot to test bare builds (not
> buildworld/buildenv/...) because I almost always cross build (either for a
> different arch or targeting CURRENT from STABLE).
> 
> I'm currently testing a switch from TARGET_ARCH to MACHINE_ARCH and
> TARGET_CPUTYPE to CPUTYPE.
> 
> -- Brooks
> 

As a hack you could do
.if defined(SRCTOP)
.include <bsd.compat.mk>
.endif

Or rename it src.compat.mk and remove from Makefile and do
.sinclude <src.compat.mk>

-- 
Regards,
Bryan Drewery

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 618 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20191016/1175a708/attachment.sig>


More information about the svn-src-head mailing list