Skip to content

KCFLAGS? #15

Description

@abfipes12

you know that kernel uses KCFLAGS (and CFLAGS will workn't)?
also you dont "flto" for linux lto but you need make with LLVM=1 (compile kernel with clang and other llvm programs) and then try to find and check CONFIG_LTO_CLANG_FULL or CONFIG_LTO_CLANG_THIN. (there is no lto with gcc (officially)).

some linux lore
suggests that -falign-functions=64 is worth trying.

and this dated phoronix post
says that clang + lto not bad.

to conclude, install llvm and try:
make LLVM=1 KCFLAGS="-O3 -march=native -falign-functions=64 -pipe"

or just install clear linux kernel

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions