VisionFive2 Linux kernel

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

More than 9999 Commits   32 Branches   54 Tags
author: Alexander Lobakin <alobakin@pm.me> 2021-01-21 18:45:55 +0000 committer: Kees Cook <keescook@chromium.org> 2021-02-17 10:10:37 -0800 commit: 2b8689520520175075ca97bc4eaf51ff3f7253aa parent: 112b6a8e038d793d016e330f53acb9383ac504b3
Commit Summary:
kbuild: prevent CC_FLAGS_LTO self-bloating on recursive rebuilds
Diffstat:
1 file changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 668909e7a460..2233951666f7 100644
--- a/Makefile
+++ b/Makefile
@@ -895,10 +895,10 @@ endif
 
 ifdef CONFIG_LTO_CLANG
 ifdef CONFIG_LTO_CLANG_THIN
-CC_FLAGS_LTO	+= -flto=thin -fsplit-lto-unit
+CC_FLAGS_LTO	:= -flto=thin -fsplit-lto-unit
 KBUILD_LDFLAGS	+= --thinlto-cache-dir=$(extmod-prefix).thinlto-cache
 else
-CC_FLAGS_LTO	+= -flto
+CC_FLAGS_LTO	:= -flto
 endif
 CC_FLAGS_LTO	+= -fvisibility=hidden