diff --git a/libs/libvorbis/Makefile b/libs/libvorbis/Makefile index d4e29fce9..95c85598b 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 \