From: Ian Leonard Date: Sat, 7 Apr 2018 19:56:47 +0000 (-0700) Subject: libvorbis: build with LTO on arm X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=4e80b1053f8d004111a0dcc99134219e5d13358c;p=openwrt-packages.git libvorbis: build with LTO on arm Reduces library size by 0.6% Signed-off-by: Ian Leonard --- 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 \