From 36497cc90f304d561285bdadf38ab48fa263ce6f Mon Sep 17 00:00:00 2001 From: Serge Hallyn Date: Mon, 16 Sep 2024 07:47:34 -0500 Subject: [PATCH] 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 --- meson.build | 3 +++ 1 file changed, 3 insertions(+) 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') -- 2.47.2