Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 2849

Installation • Re: How to safely compile kernel myself install and use it.

$
0
0
I want to pass my CPU type which is znver3 to the c compiler, c++ compiler, rust compiler etc., and I want to use GCC as the default compiler instead of llvm.

How to pass znver3 to kernel build process.

I found a number of variables which are as follows
1) KCPPFLAGS
2) KCFLAGS
3) CPFLAGS
4) HOSTCFLAGS
5) HOSTCXXFLAGS
6) USERCFLAGS

MY intention is I want to use GCC as default and pass "znver3 -O2 pipe" to all compilers and every time I mean it may be while compiling kernel or other software like ffmpeg.

Is there any single export command to do this.

Statistics: Posted by rupeshforu3 — 2025-02-24 13:37



Viewing all articles
Browse latest Browse all 2849

Trending Articles