]> 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)
committerSerge Hallyn <serge@hallyn.com>
Mon, 16 Sep 2024 12:47:34 +0000 (07:47 -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 9172f986771a515a22feb66432a1ec6bb4614578..0b5ff24ab1cf096f1403c80e95dd902ef7c5e0e5 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')