diff options
author | Ian Leonard <antonlacon@gmail.com> | 2018-04-07 12:56:47 -0700 |
---|---|---|
committer | Ian Leonard <antonlacon@gmail.com> | 2018-04-11 19:45:06 -0700 |
commit | 4e80b1053f8d004111a0dcc99134219e5d13358c (patch) | |
tree | d07645765a2944315ff756a610cead1b96a42f5b /libs/libvorbis | |
parent | da040815fa3faf2534f9871412a1c48a8f6d1336 (diff) |
libvorbis: build with LTO on arm
Reduces library size by 0.6%
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
Diffstat (limited to 'libs/libvorbis')
-rw-r--r-- | libs/libvorbis/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
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 \ |