EasyRPG / packaging

Config files used for different distributions to build EasyRPG packages
7 stars 2 forks source link

RPMLint on openSUSE thumbleweed does not like liblcf #9

Open carstene1ns opened 4 years ago

carstene1ns commented 4 years ago

LTO is enabled by default on SUSE Tumbleweed. Seems we have fat lto objects... :goat:

[   59s] RPMLINT report:
[   59s] ===============
[   60s] liblcf0-devel.i586: E: lto-no-text-in-archive (Badness: 10000) /usr/lib/liblcf.a
[   60s] This archive does not contain a non-empty .text section.  The archive was not
[   60s] created with -ffat-lto-objects option.

Possible solution: https://github.com/zeromq/libzmq/commit/3e4c90bbf43db5d042caf90c44853e359cb603cb

Ghabry commented 4 years ago

CMake has INTERPROCEDURAL_OPTIMIZATION but this sets -flto -fno-fat-lto-objects so the opposite of what Suse wants :/

Ghabry commented 4 years ago

CMake workaround. The behaviour of fat-lto-objects can't be directly configured from the CMake command line, is hardcoded: https://gitlab.kitware.com/cmake/cmake/issues/16808