diff --git a/arch/loongarch/Makefile b/arch/loongarch/Makefile index 390137c40..e7c2ddd79 100644 --- a/arch/loongarch/Makefile +++ b/arch/loongarch/Makefile @@ -116,7 +116,7 @@ ifdef CONFIG_LTO_CLANG # The annotate-tablejump option can not be passed to LLVM backend when LTO is enabled. # Ensure it is aware of linker with LTO, '--loongarch-annotate-tablejump' also needs to # be passed via '-mllvm' to ld.lld. -KBUILD_LDFLAGS += -mllvm --loongarch-annotate-tablejump +KBUILD_LDFLAGS += $(call ld-option,-mllvm --loongarch-annotate-tablejump) endif endif