From: Tom Rini Date: Thu, 9 Mar 2023 16:22:09 +0000 (-0500) Subject: examples: Don't use LTO for hello_world X-Git-Tag: baikal/mips/sdk6.2~4^2~3^2~175^2~25^2~1 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=868af7ffce2dc5d29b5972f4666c02c444126a3f;p=uboot.git 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 Reviewed-by: Simon Glass --- diff --git a/examples/standalone/Makefile b/examples/standalone/Makefile index 5b48a9d43c..559170dd5c 100644 --- a/examples/standalone/Makefile +++ b/examples/standalone/Makefile @@ -29,6 +29,10 @@ targets += $(patsubst $(obj)/%,%,$(LIB)) $(COBJS) $(LIBOBJS-y) LIBOBJS := $(addprefix $(obj)/,$(LIBOBJS-y)) 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 # relocatable executable. The relocation data is not needed, and # also causes the entry point of the standalone application to be