From: Serge Hallyn Date: Mon, 16 Sep 2024 12:47:34 +0000 (-0500) Subject: meson.build: add -ffat-lto-objects X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36497cc90f304d561285bdadf38ab48fa263ce6f;p=thirdparty%2Flxc.git meson.build: add -ffat-lto-objects Otherwise, if we generate a static library, lintian warns that it has no code sections. See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=977596 Signed-off-by: Serge Hallyn --- diff --git a/meson.build b/meson.build index 9172f9867..0b5ff24ab 100644 --- a/meson.build +++ b/meson.build @@ -249,6 +249,9 @@ if cc.get_id() == 'clang' '-Wno-gnu-variable-sized-type-not-at-end', ] endif +possible_cc_flags += [ + '-ffat-lto-objects', +] if meson.version().version_compare('>=0.46') add_project_link_arguments(cc.get_supported_link_arguments(possible_link_flags), language: 'c')