Skip to content

Commit 332f480

Browse files
committed
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 <[email protected]> Reviewed-by: Simon Glass <[email protected]>
1 parent 16d82d7 commit 332f480

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/standalone/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ targets += $(patsubst $(obj)/%,%,$(LIB)) $(COBJS) $(LIBOBJS-y)
2929
LIBOBJS := $(addprefix $(obj)/,$(LIBOBJS-y))
3030
ELF := $(addprefix $(obj)/,$(ELF))
3131

32+
# Disable LTO for these builds
33+
CFLAGS_REMOVE_hello_world.o := $(LTO_CFLAGS)
34+
CFLAGS_REMOVE_stubs.o := $(LTO_CFLAGS)
35+
3236
# For PowerPC there's no need to compile standalone applications as a
3337
# relocatable executable. The relocation data is not needed, and
3438
# also causes the entry point of the standalone application to be

0 commit comments

Comments
 (0)