Subject: Re: libkern compile on hp300
To: Wolfgang Solfrank <ws@tools.de>
From: Allen Briggs <briggs@cray-ymp.acm.stuorg.vt.edu>
List: netbsd-bugs
Date: 03/11/1994 08:00:44
> This seems to indicate that hp300 isn't set when you compile the kernel
> library. I would have expected these architecture flags set automatically
> on any compiler invocation.

I got the same problem on the mac68k last night.  This is the problem.
${MACHINE} is not defined by the compiler on machines with MACHINE_ARCH
==m68k because, well, it doesn't make sense ;-)

> Well, probably we have to include a line
> 
> CFLAGS+=	-D${MACHINE}
> 
> in sys/lib/libkern/Makefile.

This should fix the symptoms...  Shouldn't libkern be compiled with the
same flags as the rest of the kernel, though?  At least the parts in
libkern/kernel?

-allen

-- 
Allen Briggs         Find the cost of freedom / Buried in the ground
- end                Mother Earth will swallow you / Lay your body down
      killing -    
allen.briggs@vt.edu          ***** MacBSD == NetBSD/Mac *****

------------------------------------------------------------------------------