diff --git a/Makefile b/Makefile index 35ca90776a9fdfccc8216eae0c9bd23e25577942..e98fcc065f4f560824b3918b6c327ed4ffbf2367 100644 --- a/Makefile +++ b/Makefile @@ -901,7 +901,7 @@ endif ifdef CONFIG_LTO_CLANG ifdef CONFIG_LTO_CLANG_THIN CC_FLAGS_LTO := -flto=thin -fsplit-lto-unit -KBUILD_LDFLAGS += --thinlto-cache-dir=$(extmod-prefix).thinlto-cache +KBUILD_LDFLAGS += --thinlto-cache-dir=$(extmod-prefix).thinlto-cache --lto-O0 else CC_FLAGS_LTO := -flto endif