[lxc/lxc] 36497c: meson.build: add -ffat-lto-objects

0 views
Skip to first unread message

Serge Hallyn

unread,
Oct 9, 2024, 4:36:15 PMOct 9
to lxc-...@lists.linuxcontainers.org
Branch: refs/heads/main
Home: https://github.com/lxc/lxc
Commit: 36497cc90f304d561285bdadf38ab48fa263ce6f
https://github.com/lxc/lxc/commit/36497cc90f304d561285bdadf38ab48fa263ce6f
Author: Serge Hallyn <se...@hallyn.com>
Date: 2024-09-16 (Mon, 16 Sep 2024)

Changed paths:
M meson.build

Log Message:
-----------
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 <se...@hallyn.com>


Commit: a8ca9f5f31da93636901778c88af5c93ba14406f
https://github.com/lxc/lxc/commit/a8ca9f5f31da93636901778c88af5c93ba14406f
Author: Serge Hallyn <se...@hallyn.com>
Date: 2024-10-03 (Thu, 03 Oct 2024)

Changed paths:
M meson.build

Log Message:
-----------
meson.build: drop suggest-attribute=noreturn build option

The suggest-attribute=noreturn option marks functions which will
never return, to give the compiler some hints. It catches all of
our src/lxc/tools/*.c *_main functions as follows:

error: function might be candidate for attribute ‘noreturn’ [-Werror=suggest-attribute=noreturn]

But if we mark those __noreturn, then the compiler complains that:

../src/lxc/tools/lxc_attach.c:320:53: warning: ‘main’ specifies less restrictive attribute than its target ‘lxc_attach_main’: ‘noreturn’ [-Wmissi
ng-attributes]
320 | int __attribute__((weak, alias("lxc_attach_main"))) main(int argc, char *argv[]);

This recommendation is really not very important, so let's not ask
the build to warn about it.

Signed-off-by: Serge Hallyn <se...@hallyn.com>


Commit: 5714ae4b194f71ee05e08444cb3c666b440594c1
https://github.com/lxc/lxc/commit/5714ae4b194f71ee05e08444cb3c666b440594c1
Author: Serge Hallyn <se...@hallyn.com>
Date: 2024-10-09 (Wed, 09 Oct 2024)

Changed paths:
M meson.build

Log Message:
-----------
Merge pull request #4482 from hallyn/2024-09-16/static

meson.build: add -ffat-lto-objects


Compare: https://github.com/lxc/lxc/compare/bf33e9bc54ec...5714ae4b194f

To unsubscribe from these emails, change your notification settings at https://github.com/lxc/lxc/settings/notifications
Reply all
Reply to author
Forward
0 new messages