Skip to content

Commit d639305

Browse files
committed
rpm: fix lto-no-text-in-archive
opensuse 16 builds fail with the following issue: [ 100s] naemon-devel.aarch64: E: lto-no-text-in-archive (Badness: 10000) /usr/lib64/naemon/libnaemon.a [ 100s] This archive does not contain a non-empty .text section. The archive was not [ 100s] created with -ffat-lto-objects option. [ 100s] naemon-devel.aarch64: E: lto-bytecode (Badness: 10000) /usr/lib64/naemon/libnaemon.a [ 100s] This executable contains a LTO section. LTO bytecode is not portable and [ 100s] should not be distributed in static libraries or e.g. Python modules. the recommended fix is to extend the _lto_cflags macro.
1 parent 25c2829 commit d639305

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

naemon-core.spec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ Requires(pre): shadow
5050
%if 0%{?suse_version} < 1315
5151
Requires(pre): shadow-utils
5252
%endif
53+
54+
# satisfy opensuse 16 rpmlint issue: E: lto-no-text-in-archive
55+
%global _lto_cflags %{?_lto_cflags} -ffat-lto-objects
5356
%endif
5457
Requires: logrotate
5558
Requires: libnaemon >= %{version}

0 commit comments

Comments
 (0)