diff --git a/Makefile b/Makefile index 3189eacf3185921af015f74635f7dfb06d733560..639873def1fd710839a455cbabd8edb63bb6ed65 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