diff --git a/libs/libvorbis/Makefile b/libs/libvorbis/Makefile index d4e29fce9f..95c85598be 100644 --- a/libs/libvorbis/Makefile +++ b/libs/libvorbis/Makefile @@ -41,6 +41,12 @@ software entity may make full use of the format without license fee, royalty or patent concerns. endef +ifneq ($(findstring arm,$(CONFIG_ARCH)),) + TARGET_CFLAGS += -flto + TARGET_CXX_FLAGS += -flto + TARGET_LDFLAGS += -flto +endif + CONFIGURE_ARGS+= \ --disable-oggtest \