From 4e80b1053f8d004111a0dcc99134219e5d13358c Mon Sep 17 00:00:00 2001 From: Ian Leonard Date: Sat, 7 Apr 2018 12:56:47 -0700 Subject: [PATCH] libvorbis: build with LTO on arm Reduces library size by 0.6% Signed-off-by: Ian Leonard --- libs/libvorbis/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) 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 \