On Tue, 27 Nov 2001, Parienti M. wrote:
> /usr/src/linux is a symlink to the the kernel source, but I
> still have the problem.

Er, what about /usr/include/linux and /usr/include/asm ?

> > Now, I suppose you could get the makefiles to pass the right -I flag to
> > the compiler (er, fiddle with host.def in xc/config/cf) to include the 2.4
> > headers, or disregard Linus's recommendadion to have the kernel elsewhere.
> What should I put in host.def to pass the right -I flag

My host.def (note; gcc 3.x option -mcpu=athlon):
---
#define DefaultGcc2i386Opt -O2 -mcpu=athlon -fno-strength-reduce \
                           -fexpensive-optimizations -ffast-math \
                           -malign-functions=2 -malign-jumps=2 \
                           -malign-loops=2 -fomit-frame-pointer

#define LibraryCDebugFlags -O2 -mcpu=athlon -fno-strength-reduce \
                           -fexpensive-optimizations -ffast-math \
                           -malign-functions=2 -malign-jumps=2 \
                           -malign-loops=2 -fomit-frame-pointer

#define GccWarningOptions -Wall -Wpointer-arith -Wstrict-prototypes \
                          -Wmissing-prototypes -Wmissing-declarations \
                          -Wnested-externs

#define DefaultCCOptions -O2

#define Freetype2Dir     /usr

#define BuildXF86DRI YES
#define MesaUseMMX YES
#define MesaUse3DNow YES
---
You probably want to put the -I/path/to/linux/include in DefaultCCOptions,
and/or maybe DefaultGcc2i386Opt.
Although you should probably fix the /usr/include/linux and
/usr/include/asm symlinks...
You probably also want to make clean; make World after fiddling with this
stuff...

-- 
Regards, [EMAIL PROTECTED]
My website: http://www.iain.thomas.dial.pipex.com/
XMMS not playing

_______________________________________________
Newbie mailing list
[EMAIL PROTECTED]
*** To unsubscribe , or change message options, see:
http://XFree86.Org/mailman/listinfo/newbie

Reply via email to