libpayload/Makefile.payload: Add lto flags
Change-Id: If4496e300dd239b8652285bab05c2f68a51b4437 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/84015 Reviewed-by: Nico Huber <nico.h@gmx.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
1dfe9dc460
commit
43bcbb0d56
1 changed files with 3 additions and 0 deletions
|
|
@ -85,6 +85,9 @@ endif
|
|||
CFLAGS = $(CFLAGS_$(ARCH))
|
||||
CFLAGS += -Os -ffreestanding
|
||||
CFLAGS += -Wall -Wextra -Wmissing-prototypes -Wvla -Werror
|
||||
ifeq ($(CONFIG_LP_LTO),y)
|
||||
CFLAGS += -flto
|
||||
endif
|
||||
|
||||
# `lpgcc` in in-tree mode:
|
||||
LPGCC = CC="$(CCACHE) $(CC_$(ARCH))"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue