Subject: Re: local-host tools used during NetBSD xcompilation
To: Alan Barrett <apb@cequrux.com>
From: Tom Spindler <dogcow@babymeat.com>
List: tech-misc
Date: 12/26/2007 23:55:26
> > Right now, there are a fair amount of host-locale binaries built and run
> > during the NetBSD build process - e.g. a bunch of bits in games/, 
> > sys/arch/i386/stand/genprom, etc. Right now, there seem to be no
> > flags, no defines, or anything other than "cc -O -c -o".
> 
> They should, at the very least, be using ${HOST_CC} and ${HOST_CFLAGS},
> not assuming "cc" and "-O".  Are you sure they don't do that?

For src/sys/arch/i386/stand/genprom, here's the contents of Makefile:
HOSTPROG= genprom
NOMAN=  # defined
.include <bsd.hostprog.mk>

That's all. Even more amusing is src/games/phantasia's Makefile - which
has uses ${_MKTARGET_LINK} and ${HOST_LINK.c} - but relies on the implicit
rules for .lo set up... somewhere.