mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
build: Allow LTO to work globally, not just codecs/plugins
IMPORTANT: There is no guarantee this will compile cleanly much less _work_ on any given target. This is purely to enable future hackery. Change-Id: Ib58f21b717719fd4325622b446a60779406ae035
This commit is contained in:
parent
200529532b
commit
bdf1690cb2
4 changed files with 10 additions and 5 deletions
|
|
@ -47,6 +47,11 @@ $(BUILDDIR)/sysfont.o: $(SYSFONTX) $(BUILDDIR)/sysfont.h
|
|||
$(call PRINTS,CONVBDF $(subst $(ROOTDIR)/,,$<))$(TOOLSDIR)/convbdf -l $(MAXCHAR) -c -o $(BUILDDIR)/sysfont.c $<
|
||||
$(call PRINTS,CC $(subst $(ROOTDIR)/,,$(BUILDDIR)/sysfont.c))$(CC) $(CFLAGS) -c $(BUILDDIR)/sysfont.c -o $@
|
||||
|
||||
ifdef USE_LTO
|
||||
$(BUILDDIR)/firmware/asm/%.o: CFLAGS += -fno-lto
|
||||
$(BUILDDIR)/firmware/kernel/%.o: CFLAGS += -fno-lto
|
||||
endif
|
||||
|
||||
# GNU make (at least) has a bug/feature that exported variable are not available
|
||||
# in the shell function (but are in recipe). Thus we need to explicitely pass
|
||||
# the VERSION environement variable
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue