build: fix annocheck warnings on i686
Failures found: Hardened: ./usr/lib/liblzma.so.5.2.4: FAIL: Gaps were detected in the annobin coverage. Hardened: ./usr/lib/liblzma.so.5.2.4: FAIL: Gaps were detected in the annobin Resolves: rhbz#1630650 Version: 5.2.4-4
This commit is contained in:
parent
5a94c59532
commit
bc0b77f166
16
xz.spec
16
xz.spec
@ -4,7 +4,7 @@
|
||||
Summary: LZMA compression utilities
|
||||
Name: xz
|
||||
Version: 5.2.4
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
|
||||
# Scripts xz{grep,diff,less,more} and symlinks (copied from gzip) are
|
||||
# GPLv2+, binaries are Public Domain (linked against LGPL getopt_long but its
|
||||
@ -84,9 +84,18 @@ commands that deal with the older LZMA format.
|
||||
|
||||
|
||||
%build
|
||||
export CFLAGS="%optflags"
|
||||
|
||||
%ifarch %{power64}
|
||||
export CFLAGS="%{optflags} -O3"
|
||||
CFLAGS="$CFLAGS -O3"
|
||||
%endif
|
||||
|
||||
%ifarch %ix86
|
||||
# rhbz#1630650, annocheck reports the following message before liblzma uses
|
||||
# crc*_x86.S asm code on i686:
|
||||
CFLAGS="$CFLAGS -Wa,--generate-missing-build-notes=yes"
|
||||
%endif
|
||||
|
||||
%configure
|
||||
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
||||
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
||||
@ -146,6 +155,9 @@ LD_LIBRARY_PATH=$PWD/src/liblzma/.libs make check
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Nov 22 2018 Pavel Raiskup <praiskup@redhat.com> - 5.2.4-4
|
||||
- fix annocheck failures on i686 (rhbz#1630650)
|
||||
|
||||
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.4-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user