[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

cmake: get rid of -fno-fat-lto-objects



Hello,

One of my package builds with cmake.

All is fine except that the built static library gets the no-code-sections error complaint from lintian.
It appears [1,2] that /usr/share/cmake-3.22/Modules/Compiler/GNU.cmake enforces
 -fno-fat-lto-objects unconditionally for GCC + IPO

What is the easiest way to revert the  -fno-fat-lto-objects flags ?

Thanks in advance,
Jerome



[1] https://gitlab.kitware.com/cmake/cmake/-/issues/21696
[2] https://stackoverflow.com/questions/70806677/why-does-cmake-set-no-fat-lto-objects-when-i-enable-lto-ipo
--
Jerome BENOIT | calculus+at-rezozer^dot*net
https://qa.debian.org/developer.php?login=calculus@rezozer.net
AE28 AE15 710D FF1D 87E5  A762 3F92 19A6 7F36 C68B

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


Reply to: