VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Sami Tolvanen <samitolvanen@google.com> 2021-02-23 13:59:52 -0800 committer: Kees Cook <keescook@chromium.org> 2021-02-23 14:10:44 -0800 commit: 5e95325fbbbdea96de91e7bdb05fe95a3031e37d parent: b33fff07e3e3817d94dbec7bf2040070ecd96d16
Commit Summary:
kbuild: lto: force rebuilds when switching CONFIG_LTO
Diffstat:
1 file changed, 2 insertions, 1 deletion
diff --git a/Makefile b/Makefile
index 3189eacf3185..639873def1fd 100644
--- a/Makefile
+++ b/Makefile
@@ -910,7 +910,8 @@ KBUILD_LDFLAGS += -mllvm -import-instr-limit=5
 endif
 
 ifdef CONFIG_LTO
-KBUILD_CFLAGS	+= $(CC_FLAGS_LTO)
+KBUILD_CFLAGS	+= -fno-lto $(CC_FLAGS_LTO)
+KBUILD_AFLAGS	+= -fno-lto
 export CC_FLAGS_LTO
 endif