From 8e0d71e1ae00eb23fcb9f44348618bf58ad678ca Mon Sep 17 00:00:00 2001 From: Nils Schimmelmann Date: Wed, 8 Apr 2026 12:00:59 -0500 Subject: [PATCH] enable link-time optimization (LTO) in Meson build This change results in a smaller and potentially more efficient library binary. Benchmark tests showed an approximately 8% reduction in `libfaac.so` size and a 4% improvement in throughput. --- meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index d45e8816..d3e59473 100644 --- a/meson.build +++ b/meson.build @@ -4,7 +4,8 @@ project('faac', 'c', 'default_library=both', 'buildtype=release', 'warning_level=1', - 'c_std=gnu99,c99' + 'c_std=gnu99,c99', + 'b_lto=true' ]) add_global_arguments('-DHAVE_CONFIG_H', language: 'c')