From: Sami Tolvanen Date: Mon, 10 Apr 2017 19:32:24 +0000 (-0700) Subject: FROMLIST: scripts/mod: disable LTO for empty.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fbac51e86363869e1bbbdf42a81cf26b6fe434e1;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git FROMLIST: scripts/mod: disable LTO for empty.c With CONFIG_LTO_CLANG, clang generates LLVM IR instead of ELF object files. As empty.o is used for probing target properties, disable LTO for it to produce an object file instead. Bug: 62093296 Bug: 67506682 Change-Id: I0c7ac7ee0134465cac4a8c3a9c7e8b6347076a2b (am from https://patchwork.kernel.org/patch/10060317/) Signed-off-by: Sami Tolvanen --- diff --git a/scripts/mod/Makefile b/scripts/mod/Makefile index 42c5d50f2bcc..e014b2fdd069 100644 --- a/scripts/mod/Makefile +++ b/scripts/mod/Makefile @@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 OBJECT_FILES_NON_STANDARD := y +CFLAGS_empty.o += $(DISABLE_LTO) hostprogs-y := modpost mk_elfconfig always := $(hostprogs-y) empty.o