forked from len0rd/rockbox
build: Experimental LTO support, phase one
* Only codecs and plugins are enabled * Only native builds (so far) * Only tested on xDuoo X3 (MIPS, monochrome) * opus & speex generate some warnings * Significant compile time impact Change-Id: I519b0d179631a54b2103cd67225bd5ec6ad3bd2f
This commit is contained in:
parent
7b12cc3927
commit
73f40d8a23
4 changed files with 31 additions and 1 deletions
|
@ -33,6 +33,13 @@ else
|
|||
endif
|
||||
CODECLDFLAGS += $(GLOBAL_LDOPTS)
|
||||
|
||||
ifdef USE_LTO
|
||||
CODECLDFLAGS += -flto -fno-builtin -ffreestanding
|
||||
CODECFLAGS += -flto -fno-builtin -ffreestanding
|
||||
CODECLDFLAGS += -e __header
|
||||
endif
|
||||
|
||||
|
||||
# the codec libraries
|
||||
include $(RBCODECLIB_DIR)/codecs/demac/libdemac.make
|
||||
include $(RBCODECLIB_DIR)/codecs/liba52/liba52.make
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue