Subject: Re: CVS commit: src/sys/arch/ofppc/stand/ofwboot
To: David Laight <david@l8s.co.uk>
From: Simon Burge <simonb@wasabisystems.com>
List: source-changes
Date: 10/08/2003 17:47:05
David Laight wrote:
> >
> > Log Message:
> > Use -ffreestanding.
> > Define LIB{CRT0,C,CRTBEGIN,CRTEND} as nothing, we don't need to link
> > against them.
>
> I hit this little problem (trying to build some standalone bits in an
> unpopulated obj/dest tree).
>
> My thought was that bsd.prog.mk isn't quite the Makefile you want.
> Or rather you don't want its 'PROG' target.
> Adding 4 defines to every Makefile that does this (loads of boot stuff)
> doesn't seem quite the correct fix.....
That's what the "XXX" comment is for :-).
Yes there's a better way, I (or you!) just haven't figured out what
the best method is yet.
Simon.
--
Simon Burge <simonb@wasabisystems.com>
NetBSD Support and Service: http://www.wasabisystems.com/