]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
meson.build: add -ffat-lto-objects
authorSerge Hallyn <serge@hallyn.com>
Mon, 16 Sep 2024 12:47:34 +0000 (07:47 -0500)
committerStéphane Graber <stgraber@stgraber.org>
Wed, 4 Dec 2024 21:37:42 +0000 (16:37 -0500)
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 <serge@hallyn.com>
meson.build

index f00d5a00630ef5ec66d63e0000f0b1220f911219..e83b327632f869ef7a3fd0f9bb945441587e442e 100644 (file)
@@ -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')