[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Black arts
"p. buxton" wrote:
>
> The module came with a makefile; its grand contribution to the whole affair
> is one gcc command line. If I try to compile it, I get lib errors as it
> interprets, say:
>
> #include<asm/byteorder.h>
>
> to mean /include/asm/byteorder.h, not
> /usr/src/linux/include/asm/byteorder.h. Very annoying. Even worse is that
> any #includes in the called headers will also be wrong, but I am extremely
> unwilling to change them all.
>
In the Makefile in your one line compile statement add to the line
someplace after the "gcc" the following:
-I/usr/src/linux/include
That should make the compiler look in the usual places, and then look
where you want it to.
Now that I think about it, the last time I compiled a kernel, you had to
link several directories back to /usr/include, I remember scsi off the
top of my head, maybe asm also?
Steve