PDA

View Full Version : Kernel and GCC



McBane
08-06-2003, 04:46 AM
Could it be possible, for the next version or maybe the one after that, to include a kernel compiled with the version of gcc that is in the path?

Hacks (cc_ignore...and ln sumthing sumthing) work but introduce instability, at least in my experience. I am too much of a noob to roll my own kernel without any problems, and i would like to use knoppix for some 3d gaming...which i cant do (without instability) if the kernel isn't compiled with the gcc that's in the path. This make sense? Just a suggestion.


Thank you for your time.

Viro
08-06-2003, 09:06 AM
The kernel is compiled with gcc-2.95, which is in the path. If you need to compile something using gcc-2.95 (i.e. nVidia drivers), just type



export CC=/usr/bin/gcc-2.95


Now if you type make or make install, you'll be using the same version of gcc that was used to compile the kernel.

McBane
08-07-2003, 02:07 AM
Thx Viro, will give this a try.