mirror of
https://xff.cz/git/u-boot/
synced 2025-08-31 16:22:36 +02:00
examples: Don't use LTO for hello_world
If we're building U-Boot with LTO, we don't want to use that for examples as it's more work than required. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -29,6 +29,10 @@ targets += $(patsubst $(obj)/%,%,$(LIB)) $(COBJS) $(LIBOBJS-y)
|
|||||||
LIBOBJS := $(addprefix $(obj)/,$(LIBOBJS-y))
|
LIBOBJS := $(addprefix $(obj)/,$(LIBOBJS-y))
|
||||||
ELF := $(addprefix $(obj)/,$(ELF))
|
ELF := $(addprefix $(obj)/,$(ELF))
|
||||||
|
|
||||||
|
# Disable LTO for these builds
|
||||||
|
CFLAGS_REMOVE_hello_world.o := $(LTO_CFLAGS)
|
||||||
|
CFLAGS_REMOVE_stubs.o := $(LTO_CFLAGS)
|
||||||
|
|
||||||
# For PowerPC there's no need to compile standalone applications as a
|
# For PowerPC there's no need to compile standalone applications as a
|
||||||
# relocatable executable. The relocation data is not needed, and
|
# relocatable executable. The relocation data is not needed, and
|
||||||
# also causes the entry point of the standalone application to be
|
# also causes the entry point of the standalone application to be
|
||||||
|
Reference in New Issue
Block a user