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:
Solomon Peachy 2024-11-24 08:23:38 -05:00
parent 200529532b
commit bdf1690cb2
4 changed files with 10 additions and 5 deletions

View file

@ -154,8 +154,8 @@ endif
PLUGINLDFLAGS += $(GLOBAL_LDOPTS)
ifdef USE_LTO
PLUGINFLAGS += -flto -fno-builtin -ffreestanding
PLUGINLDFLAGS += -flto -fno-builtin -ffreestanding
PLUGINFLAGS += -fno-builtin -ffreestanding
PLUGINLDFLAGS += -fno-builtin -ffreestanding
PLUGINLDFLAGS += -e plugin_start
endif