Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0218091b authored by Sami Tolvanen's avatar Sami Tolvanen Committed by Alistair Strachan
Browse files

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: default avatarSami Tolvanen <samitolvanen@google.com>
parent 932407c0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
# 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