Subject: re: why do we have libkern.o, and not libkern.a ?
To: matthew green <mrg@eterna.com.au>
From: Hubert Feyrer <hubert@feyrer.de>
List: tech-toolchain
Date: 03/12/2005 14:12:42
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/Makefile.inc).
(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!)
- Hubert
--
NetBSD - Free AND Open! (And of course secure, portable, yadda yadda)