diff --git a/Makefile b/Makefile index 78cb119a249a..d7795596a2d5 100644 --- a/Makefile +++ b/Makefile @@ -552,6 +552,9 @@ CLANG_FLAGS += $(call cc-option, -Wno-misleading-indentation) CLANG_FLAGS += $(call cc-option, -Wno-bool-operation) KBUILD_CFLAGS += $(CLANG_FLAGS) KBUILD_AFLAGS += $(CLANG_FLAGS) +ifneq ($(LLVM),) +KBUILD_CFLAGS += -fuse-ld=lld +endif endif ifeq ($(mixed-targets),1)