[klibc] version compatibility between linux and klibc

maximilian attems max at stro.at
Tue Jul 6 12:14:45 PDT 2010

On Tue, Jul 06, 2010 at 08:32:04PM +0200, Sam Ravnborg wrote:
> On Tue, Jul 06, 2010 at 05:38:35PM +0200, maximilian attems wrote:
> > 
> > I'd more guess that you are doing something wrong here, see the output
> > of "make help" on how to easily compile against linux-2.6.
> That says:
> Build options:
> KLIBCKERNELSRC - Path to a configured linux-2.6 tree
> KLIBCKERNELOBJ - Path to kernel output dir (defaults to KLIBCKERNELSRC)
> make V=0|1 [targets] 0 => quiet build (default), 1 => verbose build
> Sample invocation:
> make  KLIBCKERNELSRC=`pwd`/../linux-2.6
> Which is misleading.
> "configured linux-2.6 tree" is not enough. USer needs to know that
> headers had to be exported.
> And:
>     make  KLIBCKERNELSRC=`pwd`/../linux-2.6
> Does not do it as we should point to the exported headers.
> At least this was how I could built klibc without any symlinks or copying files.

it does work. you need to have a built tree, afaik
~/src/linux-2.6$ make defconfig && make

is enough to have a base to build klibc against.

It is the way that I develop, build and test klibc.
For debian packaging I need to do the symlink stuff against
the installed linux-libc-dev headers.

More information about the klibc mailing list