sys_controller/Makefile: Add -flto to compiler/linker flags.

This can (and does) considerably reduce the size of the resulting
binary, and as a bonus, the binary also does work. ;)
This commit is contained in:
Ari Sundholm 2020-11-06 01:22:17 +02:00
parent 0b495b234c
commit 53eedc9d08
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ APP_CFLAGS_UNDEFINED_SYMBOLS :=
APP_CFLAGS_OPTIMIZATION := -Os
APP_CFLAGS_DEBUG_LEVEL :=
APP_CFLAGS_WARNINGS := -Wall -Wno-unused-but-set-variable -Wno-unused-variable -Wno-unused-function -Wno-packed-bitfield-compat
APP_CFLAGS_USER_FLAGS := -fdata-sections -ffunction-sections -fshort-enums -fgnu89-inline
APP_CFLAGS_USER_FLAGS := -fdata-sections -ffunction-sections -fshort-enums -fgnu89-inline -flto
APP_ASFLAGS_USER :=
APP_LDFLAGS_USER := -Wl,--gc-sections