diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2024-08-21 13:49:56 +0200 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2024-08-27 09:08:07 +0000 |
commit | 43bcbb0d560e46b58880db2bda12aa21027fcb08 (patch) | |
tree | 2027d5d9e5ca007527c00320cedd9a4b3bf19fab /payloads/libpayload/Makefile.payload | |
parent | 1dfe9dc46063c751e0bf3a4637e144c0da4d5502 (diff) |
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>
Diffstat (limited to 'payloads/libpayload/Makefile.payload')
-rw-r--r-- | payloads/libpayload/Makefile.payload | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/payloads/libpayload/Makefile.payload b/payloads/libpayload/Makefile.payload index d2860bf42d..2eafd4bec3 100644 --- a/payloads/libpayload/Makefile.payload +++ b/payloads/libpayload/Makefile.payload @@ -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))" |