Subject: Re: why do we have libkern.o, and not libkern.a ?
To: None <>
From: Matt Thomas <>
List: tech-toolchain
Date: 03/12/2005 08:50:24
On Mar 12, 2005, at 5:12 AM, Hubert Feyrer wrote:

> On Sun, 13 Mar 2005, matthew green wrote:
>> LKM-unaware kernels could use libkern.a i believe...
> Maybe something like, in (e.g.) src/sys/arch/i386/conf/Makefile.i386:
> 	.if !empty(IDENT:MLKM)
> 	KERN_AS=        obj
> 	.else
> 	KERN_AS=        library
> 	.endif
> ? (untested!)
> Looking at all the sys/arch/*/conf/Makefile.* files, it may be more 
> useful to pull that into some generic code fragment (like e.g. 
> src/sys/lib/libkern/
> (I wonder why ~all(?) kernel Makefiles set KERN_AS=obj, when the 
> default is "library". Seems kinda backward. (Not knowing which ones 
> don't set it!)

sys/arch/powerpc/conf/Makefile.powerpc does vary the form of KERN_AS 
depending on the presense of -DLKM.  Feel free to steal that snippet.

Matt Thomas                     email:
3am Software Foundry              www:
Cupertino, CA              disclaimer: I avow all knowledge of this