Lets say my userspace (packages) are compiled with gcc 4.7
and libc6 2.13
(Debian Wheezy)
Can I compile linux kernel under different dev environment, such as gcc 6.3
and libc6 2.24
(ie, under Debian Stretch) ?
I know that unlike packages, kernel is not linked with any dynamic libraries. So theoretically, it should make no difference which gcc
and libc
it was compiled under.
Is this true ?
Could I run into trouble when I do this ?
Could there perhaps be some incompatibilities caused by different gcc
versions?
On the other hand, newer gcc
has some interesting features, better security. So perhaps, kernel should be compiled with newest gcc
?