Some experiments with LTO
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
5a98036a7d
commit
e810c8e4a9
6 changed files with 9 additions and 9 deletions
|
@ -155,7 +155,7 @@ BASE_FLAGS += -DHEADLESS
|
|||
endif
|
||||
|
||||
ifeq ($(WITH_LTO),true)
|
||||
BASE_FLAGS += -fno-strict-aliasing -flto
|
||||
BASE_FLAGS += -fno-strict-aliasing -flto -ffat-lto-objects
|
||||
endif
|
||||
|
||||
BUILD_C_FLAGS += -std=gnu11
|
||||
|
@ -191,7 +191,7 @@ EXTRA_LIBS += $(shell pkg-config --libs jansson libarchive samplerate speexdsp)
|
|||
endif
|
||||
|
||||
ifeq ($(WITH_LTO),true)
|
||||
LINK_FLAGS += -fno-strict-aliasing -flto -Werror=odr -Werror=lto-type-mismatch
|
||||
LINK_FLAGS += -fno-strict-aliasing -flto -ffat-lto-objects -fwhole-program -Werror=odr -Werror=lto-type-mismatch
|
||||
endif
|
||||
|
||||
# --------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue